-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[date-picker] component is not accessible via screenreader #5310
Comments
Testing this with VO, macOS and Chrome with the following issues:
Here is a link to the WAI-ARIA date picker pattern for keyboard accessible keyboard controls: https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html |
Some info wrt the keyboard navigation:
|
This change adds a content that is referred from `aria-describedby` in date picker's `<input>` (for single/range mode). The content announces how to navigate to, and how to navigate within calendar dropdown by keyboard. There were a few options in order to announce how to navigate to date picker; Two of them are from W3C WAI-ARIA Authoring Practices 1.1, a) Date Picker Dialog Example, b) Combobox with Grid Popup Example. a) has very different user interaction model from ours, because we want date picker to be open when the `<input>` gets focus but a) opens date picker only when the calendar icon is clicked. b) lets us announce the existence of dropdown, etc. in a similar manner as our other dropdown components do, but `role="combobox"` does not sound adequate for a date picker. Therefore, this change uses a custom content to announce how to navigate to calendar dropdown, rather than the content screen reader automatically creates/announces. Refs carbon-design-system#5310.
This change makes VO cursor moves to calendar dropdown as the next element to date picker input. Also contains the following changes: * Make tab/shift-tab key behaviors align to such new VO cursor behavior * Make the arrow for previous/next month focusable * Moves an old Flatpickr plugin code to a separate file Refs carbon-design-system#5310.
Team, do you have a target ETA for fix implementation? |
@asudoh Curious if any comment? We use this UI control in Your Learning. |
After an update to latest Flatpickr I did another pass on this component with some interesting new findings (Tested with VO in Chrome and Safari. JAWS with Chrome, Firefox):
This big broad issue is a little unhelpful (and might dissuade someone with JAWS access from helping out with an issue that includes VO bugs or vice versa), so I'll open a ticket to track JAWS bugs in more specificity and close this one out. Thanks all! 👍🏽 |
Environment
Tested on macOS latest in Safari for VoiceOver and generic keyboard testing and Window 10 latest in Firefox for JAWS.
Testing https://carbon-components-react.netlify.com (unreleased latest)
Detailed description
VoiceOver 🍎
JAWS 🦈
note: JAWS was so broken that testing most of the aforementioned interactions wasn't opossible
The text was updated successfully, but these errors were encountered: