Site Editor: the WP admin menu isn't really hidden on small screens #49834
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Package] Edit Site
/packages/edit-site
[Type] Bug
An existing feature does not function as intended
Description
In the Site Editor, the WordPress classic 'admin menu'
#adminmenumain
is hidden withdisplay: none;
.However, on small screens it is not hidden. Only the inner
#adminmenuwrap
element is hidden and that's because of the WP 'auto-fold' feature.Not sure whether there's a reason to not hide the admin menu also on small screens. Cc @jasmussen
This has an impact for accessibility, as:
<nav>
element is perceivable, announced by screen readers, and included in the ARIA landmarks available on the page.Hiding
#adminmenumain
also on small screens would allow to:<nav>
element in Browse mode navigation sidebar.Step-by-step reproduction instructions
#adminmenumain
is hidden withdisplay: none;
.#adminmenumain
is not hidden withdisplay: none;
.Screenshots, screen recording, code snippet
Skip links and main menu
<nav>
not really hidden on small screens:Hidden on desktop:
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: