Skip to content

Commit

Permalink
Merge pull request alphagov#187 from alphagov/add-aria-describedby-to…
Browse files Browse the repository at this point in the history
…-dob-form-hint

Use aria-describedby to associate the hint with the form fields
  • Loading branch information
robinwhittleton committed Mar 1, 2016
2 parents d5b5795 + 87449f0 commit f47712b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/snippets/form_date.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ <h1 class="heading-small">What is your date of birth?</h1>

<div class="form-date">

<p class="form-hint">For example, 31 3 1980</p>
<p class="form-hint" id="dob-hint">For example, 31 3 1980</p>

<div class="form-group form-group-day">
<label for="dob-day">Day</label>
<input class="form-control" id="dob-day" name="dob-day" type="number" pattern="[0-9]*" min="0" max="31">
<input class="form-control" id="dob-day" name="dob-day" type="number" pattern="[0-9]*" min="0" max="31" aria-describedby="dob-hint">
</div>

<div class="form-group form-group-month">
Expand Down

0 comments on commit f47712b

Please sign in to comment.