-
-
Notifications
You must be signed in to change notification settings - Fork 835
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
[A11Y] Triggering click on drawer button can cause layered backdrops #2663
Labels
type/accessibility
Issues relating to accessibility (keyboard navigation, screenreaders, text contrast, etc.)
Milestone
Comments
I'm assuming this is primarily problematic for accessibility devices? That's probably why we hadn't caught it yet. If so, this might be good to add to the mega-issue. |
Hehe I discovered it while working on a fix for #2565. I'll add it now. |
davwheat
changed the title
Triggering click on drawer button can cause layered backdrops
[A11Y] Triggering click on drawer button can cause layered backdrops
Mar 7, 2021
davwheat
added
the
type/accessibility
Issues relating to accessibility (keyboard navigation, screenreaders, text contrast, etc.)
label
Mar 15, 2021
davwheat
added a commit
that referenced
this issue
Aug 12, 2021
1 task
davwheat
added a commit
that referenced
this issue
Sep 3, 2021
davwheat
added a commit
that referenced
this issue
Nov 19, 2021
Repository owner
moved this from Todo
to Done
in Roadmap
Nov 21, 2021
davwheat
added a commit
that referenced
this issue
Nov 21, 2021
* Add focus trap util * Add focus trap to Modals Fixes #2663 * Split tab press into `onTab` handler * Remove deprecated code * Use requestAnimationFrame instead of setTimeout * Reduce code duplication * Implement focus trap in nav drawer Fixes #2665 * Hide drawer when window is resized to be bigger Fixes issue where focus trap would remain on the drawer when it is just the app header, if the drawer was opened then the window was made larger. * Simplify conditional function calls * Fix modal focus trap * Remove debug code * Simplify resize handler conditional statements * Add info about reasoning of resize handler * Prefer native JS methods over jQuery * Update conditional function call to handle `undefined` * Expose screen sizes as CSS custom properties * Use `window.matchMedia` rather than resize handler * Fix spelling error Co-authored-by: David Sevilla Martin <me@datitisev.me> * Remove breaking change Co-authored-by: David Sevilla Martin <me@datitisev.me>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
type/accessibility
Issues relating to accessibility (keyboard navigation, screenreaders, text contrast, etc.)
Bug Report
Current Behavior
On mobile viewports, focusing the nav drawer toggle button and triggering a click on it multiple times (e.g. via space) causes multiple backdrops to be shown, but only one of these closes when closing the drawer.
Steps to Reproduce
Expected Behavior
Only one backdrop should be created.
Possible solution(s)
I have two ideas:
drawerOpen
. This fixes it in case any exts open the drawer or if something else can cause this. We may also wish to consider removing all.drawer-backdrop
as a precautionary measure when closing, too.The text was updated successfully, but these errors were encountered: