-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DatePicker a11y fixes #1486
DatePicker a11y fixes #1486
Conversation
Something I noticed while testing the component with NVDA is that the day-of-the-week columns are read out by the phonetic reading of their abbreviations ("Su, Mon, Tu" are read out as "Soo, Mon, Two"), which could be confusing. On the other hand, this example date picker has NVDA read out the letters of the abbreviation ("Su, Mo, Tu" become "S.U., M.O., T.U."), which at least more accurately reflects what is supposed to be communicated. I think it would be a good idea to modify the component so that the days of the week are read out like the latter example. |
Another note: since the |
Changeset coming shortly. |
Added. |
i just tested the APG example myself and this is what i found:
in any case, we cannot control how a screen-reader is going to pronounce something; we can only change the text itself. i think it would be best if it always pronounced the full name of the day. we can achieve this using a combination of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. i'm ok with handling #1486 (comment) in a separate PR
Changes
#1148 - All examples are currently failing. Any rule violations that can be resolved just by modifying the examples will be implemented. If it is impossible to resolve a rule violation at the example level, then a change to the component may be necessary.
Basic
,DateRange
,Disabled
,Localized
,Main
,WithCombinedTime
,WithTime
, andWithYear
are violating thearia-input-field-name
rule, due to the date table within the calendar not having an accessible name. ("ARIA input fields must have an accessible name.")useId()
andaria-labeledby
in component so that the date table is labeled by the currently selected month in the month header.WithCombinedTime
andWithTime
are violating thecolor-contrast
rule, due to the background color of each selectableTimePicker
list item being the same as the background color of theTimePicker
. ("Elements must meet minimum color contrast ratio thresholds.")Menu
is violating thebutton-name
rule due to the Date Picker Button not having a proper label. ("Buttons must have discernible text.")aria-label
inDatePickerMenuExample
forIconButton
so that the screen reader will correctly identify the button's role as the date picker button.Testing
Testing will be conducted through the Cypress web a11y script. Any breaking changes will be evaluated through unit testing & visual tests.
Docs
TBD