-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
List View: A11Y focus enhancements for edit-site based on modifications to edit-post #51404
Conversation
Size Change: +1.9 kB (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
Flaky tests detected in 20f5008. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5237413260
|
Thanks for the ping, @alexstine. This is on my to-do list; I'll try to review/test it this week. |
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.
Looks good and tests well! Brings parity between the post editor and site editor's usage of the list view sidebar. Thanks for the PR! There's only a couple edits to make to the tests to remove unneeded parts.
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.
Looks great! As long as all the tests pass on github, this looks ready to go. Thanks!
For parity sake, I wonder if we should eventually rename the edit-site list view to document overview. Seems confusing to have two different things although the list view in edit-site is really just a list view of blocks. Might be worth an issue to discuss. |
I haven't ever worked with it. Does it seem like it could be combined into one? Or is there too much divergence between them? I agree that it would be great if it was just a way of navigating any list of blocks in the editor. |
…ns to edit-post (WordPress#51404) * Bring A11Y changes to site editor list view from the post editor. Add E2E testing. * Add missing comment to explain usage of open-only keyboard shortcut usage. * Reviewer feedback.
What?
The document overview sidebar in the edit-post package has had focus enhancements for accessibility for some time now. Time to bring those over to edit-site.
Why?
Improves the usefulness of the document overview shortcut. When the sidebar is closed, it opens the sidebar. When the sidebar is opened and focus is inside the sidebar, the sidebar closes. If the sidebar is opened and focus is outside the sidebar, focus will be brought back to the sidebar.
How?
Implements similar code already written for the edit-post package. Added a modified E2E test to site-editor.
Testing Instructions
Testing Instructions for Keyboard
Same.
Screenshots or screencast