Open
Description
Description
The tables module that is used for creating hours on Facilities doesn't have specific enough labels for the Time
input elements, this can cause confusion for someone using assistive technology.
Currently, for each input field where a time should be entered, the <label>
is just Time. That makes sense, it is logical, however when there are 14 fields with the same label, that's where it get's a bit confusing. We need to add additional context to these labels to indicate which day and if it's the From or To time each field is for.
Where is this issue present
This is present on instances of the hours table:
- Vet Center - Outstation
- Vet Center - Mobile Vet Center
- Vet Center
- Vet Center - Community Access Point
- VAMC Facility
- VAMC System Billing and Insurance
- VBA Facility
- NCA Facility
Steps for implementation
- Remove the
title
attribute- This is an additional and unnecessary attribute that only adds noise
- Update the From and To column headers change to Opening Time and Closing Time (respectively) as this is more descriptive and clear
- Add additional context. This can be done in a couple ways. I'm not sure if there are technical limitations so I'm providing both:
- Update the
<label>
element for each field to include the necessary context. For example:- Opening time on Monday
- Closing time on Monday
- Opening time on Tuesday
- etc.
- Use
aria-labelledby
on the<input>
to point to both the column header and the row header- Remove the
<label>
element for each<input>
- On the
<th>
for Opening time and the<th>
for Closing time an a uniqueid
- On each
<div>
that contains the day of the week, add a uniqueid
- On each
<input>
addaria-labelledby="{opening/closingID} {dayOfTheWeekID}
- Remove the
- Update the
Screen shot of IDs on Opening and Closing headers
Screen shot of first time field
Notice that there is no label and no title attribute
Acceptance Criteria
- All time input fields have an accessible name that provides necessary contextual information
- Column headers for time have been updated to "Opening time" and "Closing time"
- All
title
attributes have been removed - Requires accessibility review
Metadata
Metadata
Assignees
Labels
CMS team practice areaFacilities products (VAMC, Vet Center, etc)product owned by Facilities teamCMS managed VBA product owned by the Facilities teamCMS managed product owned by Facilities teamCMS managed product owned by Facilities teamModerate accessibility issue that should be fixed in the next 1-3 sprintsIssues related to accessibility
Activity