-
Notifications
You must be signed in to change notification settings - Fork 368
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
Accessible screen reader live region and notifications #359
Conversation
- a11yNotifications flag/bool - a11yNotify action - this.a11yNotificationMessages
+ ability to pass in all custom SearchDriver config options to setupDriver test helper
+ DRY out PagingInfoContainer logic
so as to be non-breaking for any projects already shipping their own accessibility notices this will default to true in 2.0
- Note that console.warn and console.error still seem to be output by jest no matter what :(
- Moving the message func to react-search-ui, so that non-react users don't inherit a UI message function they aren't using
Alrighty - all of @yakhinvadim's feedback should have been addressed at this point! I'd love a quick re-review of any added/changed functionality (don't hesitate to flag anything that you're skeptical of that was added after feedback, I truly don't mind). As a heads up also once this PR has been finalized/merged, I'll probably go back and un-collapse a few comments that contain useful info that I think will be handy to have as historical reference :) |
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.
This is great! I have only one comment. Also, waiting for Jason's thoughts in this discussion: #359 (comment)
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 👍 Really happy we'll see this in the next release.
Description
This is an an accessibility PR that provides more context and information to screen reader users. The goal is to announce the results/consequences of certain actions being taken to users, so that visually impaired users aren't left wondering what happened after pressing a button.
For example:
Screencaps
Search results announcements:
+ More Filters annoucements:
List of changes
a11yNotifications
flag to our SearchDriver config.a11yNotificationMessages
key to our SearchDriver configa11yNotify
action to SearchDriver / withSearchAssociated Github Issues
Fixes #325
PRs: See #320 and #355 for initial WIP work towards this final architecture.