[wp-trac] [WordPress Trac] #56942: Insufficient color contrast - inactive cancel action for bulk select in nav-menu.php
WordPress Trac
noreply at wordpress.org
Thu Nov 17 10:29:18 UTC 2022
#56942: Insufficient color contrast - inactive cancel action for bulk select in
nav-menu.php
---------------------------------------+---------------------------------
Reporter: kebbet | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.2
Component: Menus | Version: 5.8
Severity: normal | Resolution:
Keywords: has-screenshots has-patch | Focuses: accessibility, css
---------------------------------------+---------------------------------
Comment (by kebbet):
Replying to [comment:7 joedolson]:
> In the accessibility bug scrub, we discussed this issue, and it's a bit
more complicated than it first appears.
>
> In this state, the 'Remove Selected Items' is a disabled control, and
needs to look inactive, so that users know that it's not something they
can interact with. This is also an exemption for color contrast, since an
inactive control, in theory, is not necessary for interaction.
>
> It may be preferable to have the Remove Selected Items control not be
visible at all when it isn't available; it's unclear that there's any
benefit to being able to interact or perceive a control when it would not
do anything.
Thank you for reviewing!
That makes sense, to not display the button at all. What is the preferred
way to not display it? Adding `display:none;` to the disabled class, or is
there a better solution used in core elsewhere?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56942#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list