[wp-trac] [WordPress Trac] #51628: add arg "aria-label" to wp_dropdown_categories
WordPress Trac
noreply at wordpress.org
Fri Nov 6 16:03:19 UTC 2020
#51628: add arg "aria-label" to wp_dropdown_categories
-------------------------------+------------------------------
Reporter: greghy | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 5.5
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: accessibility
-------------------------------+------------------------------
Changes (by joedolson):
* keywords: => reporter-feedback
Comment:
What is the usage you're finding for this function that outputs a form
without a label? The function itself should not produce a label, as that
would create conflicts with the existing usages of the function - it's
only designed to produce the select list, and the associated label comes
from the calling context. Adding an aria-label would create instances
where there was a mismatch between the visual label and the label
perceived by screen readers, which would definitely be a problem.
It's plausible that we could add the ability to set an aria-label
attribute on demand, but since aria-label is only perceivable by screen
readers, we don't particularly want to encourage that usage.
However, the context where you're seeing this select without a label might
be one where core needs to ensure that there's a label; can you tell us
where you're seeing this problem?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51628#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list