-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiDatePicker] Add screenreader-only calendar week day labels #7748
[EuiDatePicker] Add screenreader-only calendar week day labels #7748
Conversation
@1Copenut Could you check the changes in NVDA and JAWS and verify if everything works as expected? |
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 tested these new calendar labels with several pairings. All announced the full names correctly with no issue.
- MacOS Safari + VO
- Win10 Firefox + NVDA
- Win10 Chrome + NVDA
- Win10 Chrome + JAWS
@1Copenut Awesome, thanks for checking! ❤️ |
packages/eui/src/components/date_picker/react-datepicker/src/calendar.js
Outdated
Show resolved
Hide resolved
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.
packages/eui/src/components/date_picker/react-datepicker/src/calendar.js
Outdated
Show resolved
Hide resolved
update snapshots
packages/eui/src/components/date_picker/react-datepicker/src/calendar.js
Outdated
Show resolved
Hide resolved
packages/eui/src/components/date_picker/react-datepicker/src/calendar.js
Outdated
Show resolved
Hide resolved
packages/eui/src/components/date_picker/react-datepicker/src/calendar.js
Outdated
Show resolved
Hide resolved
packages/eui/src/components/date_picker/react-datepicker/src/calendar.js
Outdated
Show resolved
Hide resolved
packages/eui/src/components/date_picker/react-datepicker/src/calendar.js
Outdated
Show resolved
Hide resolved
Changes look great, I'm so happy this ended up being super clean and locale-aware! Updating the unit tests is my only blocking change request left. If you don't get to it before the end of your work week I can help grab it and get this merged before next week's release, just let me know! |
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.
🚢 🎉
Not sure if we want to have Trevor test one more time in screen readers since logic changed very slightly (but not output?) - either way this is good to go from my perspective!
To be safe it might be good to have one last check, but I'd let @1Copenut decide if he would like to run it another time? 🏃 |
Preview staging links for this PR:
|
💚 Build Succeeded
History
|
I ran it through the same set of screen readers. Logic feels good, and the full days announced themselves as they should. |
Thanks a million! Merging now so this gets into the release tomorrow. |
`v94.5.0-backport.1` ⏩ `v94.5.1` [Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams) --- ## [`v94.5.1`](https://github.com/elastic/eui/releases/v94.5.1) **Bug fixes** - Fixed an `EuiDualRange`s with `showInput` bug, where `min`/`max` values and invalid states were not being correctly set if values were empty strings ([#7767](elastic/eui#7767)) **Accessibility** - Improved `EuiDatePicker` and `EuiSuperDatePicker`'s time selection screen reader UX ([#7726](elastic/eui#7726)) - Improved the accessibility of `EuiDatePicker` by providing full screen-reader-only week day names to the calendar header ([#7748](elastic/eui#7748)) - Improved `EuiBadge`'s ability to tell when text within the badge is selected/highlighted and selection color contrast ([#7752](elastic/eui#7752))
Summary
closes #5937
This PR adds screenreader-only full-length, i18n week day labels for the
EuiDatePicker
calendar.QA
On the Storybook or EUI docs for
EuiDatePicker
review:EuiDatePicker
DOM output to see that the header cells now have two elements (visible short name witharia-hidden
and an additional full-text name witheuiScreenReaderOnly
)EuiDatePicker
and verify that the full-length week names are read and not the short formlocale
to e.g.it
and verify that the first day of the week is Monday (lu
=>lunedi
) and not Sunday (In Storybook, if the calendar popover was opened, close it first to apply the control changes)General checklist
Checked in both light and dark modesIf applicable, added the breaking change issue label (and filled out the breaking change checklist)