[wp-trac] [WordPress Trac] #46307: Custom admin menu items don't provide their title on medium breakpoint
WordPress Trac
noreply at wordpress.org
Fri Aug 16 23:26:48 UTC 2024
#46307: Custom admin menu items don't provide their title on medium breakpoint
-----------------------------+--------------------------------
Reporter: garrett-eclipse | Owner: garrett-eclipse
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future Release
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui, accessibility
-----------------------------+--------------------------------
Changes (by sabernhardt):
* keywords: needs-patch => has-patch
Comment:
Thanks for looking into this.
#24766 and related tickets have removed most `title` attributes from the
admin, so I cannot recommend using any of them on the `a` element.
For [53414], the column header had hidden text for screen readers, and
moving the `title` attribute to the icon with `aria-hidden` avoided
speaking the same text twice. In the admin menu, `.wp-menu-image` already
has `aria-hidden`, which could make a `title` attribute on that element
acceptable. It would need to strip all tags and only apply when the menu
does not have a submenu. However, the tooltip could still obstruct the
link on larger screens when the menu is not folded.
I tried a CSS approach in [attachment:"46307.diff"] and needed to define
the same rules for `auto-fold` and `folded` at different screen widths.
Also, the High Contrast mode border in that patch is only appropriate if
#61616 adds a similar 1-pixel transparent border on submenus.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46307#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list