Skip to content

Commit

Permalink
Remove unused .question-heading-with-hint class
Browse files Browse the repository at this point in the history
The digitalmarketplace toolkit is no longer using this
class, so let's get rid of it.
  • Loading branch information
pcraig3 committed Feb 24, 2017
1 parent f86b930 commit 73b0cc3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions app/assets/scss/_supplier-declaration.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

.supplier-declaration {

.question-heading,
.question-heading-with-hint {
.question-heading {
font-size: 19px;
font-weight: normal;
}
.question-heading li,
.question-heading-with-hint li,
.hint li {

margin: 10px 0 10px 20px;
Expand Down
4 changes: 2 additions & 2 deletions app/templates/auth/create_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div class="validation-wrapper">
{% endif %}
<div class="question">
{{ form.name.label(class="question-heading-with-hint") }}
{{ form.name.label(class="question-heading") }}
<p class="hint">
Enter the name to be referred to on the Digital Marketplace
</p>
Expand All @@ -43,7 +43,7 @@
<div class="validation-wrapper">
{% endif %}
<div class="question">
{{ form.password.label(class="question-heading-with-hint") }}
{{ form.password.label(class="question-heading") }}
<p class="hint">
Must be between 10 and 50 characters
</p>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/macros/toolkit_forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ <h2>{{ question_content.question }}</h2>
<span class="visually-hidden">{{ question_content.name }}</span>
</legend>

<span class="question-heading{% if question_content.hint %}-with-hint{% endif %}">
<span class="question-heading">
{% if question_number is not none %}
<span class="question-number">
{{ question_number }}
Expand Down
2 changes: 1 addition & 1 deletion app/templates/suppliers/edit_supplier.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h3 class="validation-masthead-heading" id="validation-masthead-heading">
{{ forms.question_input('contact_phoneNumber', 'Phone number', contact_form.phoneNumber.data, errors=contact_form.phoneNumber.errors) }}

<div class="question">
<label class="question-heading-with-hint">
<label class="question-heading">
Business address
</label>
{{ forms.input('contact_id', contact_form.id.data, type='hidden') }}
Expand Down
2 changes: 1 addition & 1 deletion tests/app/main/test_briefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def test_content_from_manifest_is_shown(self):

doc = html.fromstring(res.get_data(as_text=True))
assert doc.xpath("//h1/text()")[0].strip() == 'Email address the buyer should use to contact you'
assert (doc.xpath("//span[@class=\"question-heading-with-hint\"]/text()")[0].strip() ==
assert (doc.xpath("//span[@class=\"question-heading\"]/text()")[0].strip() ==
'Email address the buyer should use to contact you')
assert (doc.xpath("//span[@class=\"question-advice\"]/text()")[0].strip() ==
'All communication about your application will be sent to this address.')
Expand Down

0 comments on commit 73b0cc3

Please sign in to comment.