-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Popover: wrong tab order for popover contents #23120
Comments
I decided to dive into this for a hack week project, and wow it's complicated. I tried two approaches, neither worked well so I'm not submitting a PR 🙁 You can see the first attempt using So maybe we should try something different. We have a few different kinds of pop-up content, which all use
I think trying to use the same base component for all 4 of these cases is not the right approach. Each has slightly different interaction patterns, which is more obvious if you try to map it to ARIA interaction patterns. Additionally, the Finally are Given all the above, I think the approach to making our popovers accessible should be to move away from one parent Popover component as much as possible:
That said, this is definitely a larger project than 1 person's week - I'd be happy to team up with a few interested people to talk it out more & maybe try the approach I outlined above. |
Accessible popovers have been the source of much distress for me in the past, so I'd love to help in any way I can to avoid similar headaches in your pending adventure 😄 I'd point to WordPress/gutenberg#5595 as an example of my own previous attempts and failings in Gutenberg, which was eventually closed after some embattled back-and-forths. Specifically, I might hope that my concluding overview at WordPress/gutenberg#5595 (comment) could serve as a useful reference, as I'm certain many of the components which exist in Gutenberg have similar parallels in Calypso as well. I actually came to a different conclusion: Noting that a base Popover component can be a good thing, but not in the sense of advanced usage we've come to expect from it (i.e. stripping it of most of its current behaviors).
On the accessibility front, this certainly does make things simpler. But see my comment at WordPress/gutenberg#5595 (comment) for some cautions to be aware of:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I was taking notes on accessibility issues I was finding while working on other stuff, and I just encountered this issue with Popover. I think we can say that a keyboard user can't access the content of the popover as when they reach it at the end of the document it's completely out of context. I'd like to suggest taking a look at this Popover implementation, which handles modal and non-modal states ( |
This issue is stale because it has been 180 days with no activity. You can keep the issue open by adding a comment. If you do, please provide additional context and explain why you’d like it to remain open. You can also close the issue yourself — if you do, please add a brief explanation and apply one of relevant issue close labels. |
👋 Hey folks! Since this issue has been inactive for quite some time, KitKat has made the decision to close it.
If you think this issue warrants another look, here are some next steps!
Thanks for your involvement! 📌 ADDITIONAL NOTES |
See p7jreA-1wH-p2 for related discussion.
Steps to reproduce
Tab
key to focus Popover content.What I expected
Items inside Popover to be focused first.
What happened instead
Items in the background were focused, and Popover content comes in last in tab ordering.
Please refer to #21659 for one special case of this issue.
The text was updated successfully, but these errors were encountered: