#55651 closed enhancement (fixed)
Associate the terms form fields with their descriptions
Reported by: | afercia | Owned by: | joedolson |
---|---|---|---|
Milestone: | 6.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | has-patch add-to-field-guide |
Focuses: | accessibility | Cc: |
Description
The form fields to create and edit taxonomy terms in edit-tags.php
and term.php
do have descriptions. However, these descriptions are not semantically associated with the input fields.
By using the aria-describedby
attribute, assistive technologies would be able to understand there's a programmatic association between the form fields and the descriptions. Screen readers, for example, would automatically read out the descriptions while tabbing through the form fields.
It's a small improvement but I'd say using aria-describedby
in these cases should be a default practice.
See all the form fields (inlcuding the select element) in the screenshot below.
Attachments (2)
Change History (9)
#2
@
2 years ago
- Keywords has-patch added; good-first-bug removed
55651.diff is a first pass:
- Adds
aria-describedby
andid
attributes to the form HTML. - Adds an
aria_describedby
argument towp_dropdown_categories()
, to optionally print out anaria-describedby
attribute.
Sorry for the good-first-bug
keyword, I already had a patch ready :)
Moving for 6.1 consideration and adding
good-first-bug
workflow keyword as it looks like a great bugfix for new contributors :)