-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Direct focus to meta box content on expansion via keyboarding #72372
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
base: trunk
Are you sure you want to change the base?
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: +290 B (+0.01%) Total Size: 2.08 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in c280dad. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/18542980335
|
What?
Related #59246 and #66436
Improves keyboard navigation to the meta boxes from the canvas.
Why?
To improve a11y in relation to the
aria-expandedattribute used on the toggle button because the content that becomes expanded should immediately follow the button in the DOM. That's not an option due the there-resizablelibrary we are using so the next best thing is to move focus into the content upon expansion. Without this it's difficult to find the content that was expanded through keyboarding.How?
Adds focus management to the toggle button (when keyboard activated) and some logic to make the meta boxes wrapping element tabbable when it has overflow. The latter is done in following the precedent from the Preferences modal. Adds some styling to show focus on the meta boxes wrapping element.
Testing Instructions
With at least one meta box active:
Screenshots or screencast
meta-pane-focus-content-difficulty.mp4
meta-pane-focus-content-on-expansion.mp4