add proper aria label to unlock_at date

fixes CNVS-13178

There was no aria label on the text field. There is now

Test Plan
---------------
As a teacher
Given your course has a module
And you are editing that module from the modules page
And you are using a screen reader
When you check the 'lock module until a given date'
And you tab to the 'unlock_at' text field
Then it should read you the label for that text field

Change-Id: I4cce9b038d68917192205b908c1dee0ce6041e3c
Reviewed-on: https://gerrit.instructure.com/35282
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
This commit is contained in:
Sterling Cobb 2014-05-21 14:28:40 -06:00
parent 1bef256676
commit 62c552b264
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ TEXT
<td>
<%= before_label('unlock_at', %{Unlock At}) %>
</td><td>
<%= f.text_field :unlock_at, :class => "datetime_field" %>
<%= f.text_field :unlock_at, :class => "datetime_field", :'aria-label' => t('#aria_labels.unlock_at_date', "Unlock at date") %>
</td>
</tr><tr>
<td colspan="2">