-
Notifications
You must be signed in to change notification settings - Fork 4.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
Improve the headings hierarchy in the site editor page #42495
Conversation
Size Change: +19 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
982b607
to
f757a39
Compare
f757a39
to
a9d383e
Compare
a9d383e
to
d04251e
Compare
Rebased and adjusted on top of latest trunk. |
Flaky tests detected in d04251e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4045143620
|
d04251e
to
873f4b5
Compare
I rebased and adjusted on top of latest trunk. The pending issue about the main H1 can be split into a separate issue. In the meantime, I'd love to see this PR merged ❤️ |
388e53b
to
5443f4c
Compare
@afercia If you can rebase this one more time, I'll give it a quick review/approve. Happy to see this go in even if we're still trying to figure out the h1. Sorry, I was under the impression that the h1 discussion needed resolution first. Did not mean to leave you hanging here. |
@alexstine @afercia any updates here? We are running out of time to get this included in 6.3. Thanks! |
I am on a working vacation right now so do not have time to take on additional work. :( |
@ndiego thanx for the ping. Part of the headings hierarchy was already improved by @youknowriad in #51696 I think there's still room for improvements but I'll split them in a future PR. More importantly, the CSS adjustments included in this PR need to ship to fix the WP admin page See: Screenshot of the |
Fixes #42373
What?
Navigation
sub-componentsNavigationMenu
andNavigationGroup
don't render an emptyaria-labelledby
attribute. Note: this component is no longer used. It was in use when this PR was first crafted. Keeping this change as it's a simple improvement.Why?
A good headings structure is not just about good semantics. Headings are also a navigational tool for screen reader users, as they can use dedicated commands to jump through headings, get a sense of the overall content, and navigate a page. This principle applies also to administration user interfaces, where headings can be used to identify the main parts of the interface.
How?
Updated testing Instructions
Navigator
component that replacedNavigation
.#wpadminbar
is not hidden withdisplay: none;
and the admin menu is not partially hidden behing the admin bar. This is in preparation for https://core.trac.wordpress.org/ticket/56228.Old Instructions
Screenshots or screencast