Active
Project:
Drupal core
Version:
main
Component:
user interface text
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2018 at 00:02 UTC
Updated:
30 May 2023 at 21:15 UTC
Jump to comment: Most recent
Consistency survey propmpted by #2608180: View Search Filter's Label isn't Associated with Input .
The filters at the top of various admin listings make inconsistent use of form labels, descriptions, title attributes, and placeholders.
#description which is available to all users.admin/content) - This one is doesn't filter until submitting a form. 1 text input and 3 selects.
for). These are node entity fields.aria-describedby)admin/content/comment) - This one is doesn't filter until submitting a form. There are two text inputs, and one select.
for). These are comment entity fields.aria-describedby)admin/content/files) - This one is doesn't filter until submitting a form. 2 text inputs, 1 select.
for). These are file entity fields.aria-describedby)admin/structure/block)
aria-describedby)admin/structure/block/block-content) - This one is doesn't filter until submitting a form. 1 text input, 1 select
for). These are block entity fields.aria-describedby)admin/structure/views)
aria-describedby)admin/structure/views/view/content, dialog presented after pressing add button for Fields, Filter Criteria, Sort Criteria, Header, Footer, No results Behaviour, etc. , )
for). One text input, one select input.aria-describedby)admin/modules)
for, with a visually-hidden classaria-describedby)admin/modules/uninstall)
for, with a visually-hidden classaria-describedby)admin/config/development/testing)
foraria-describedby)admin/config/search/path) - This one is doesn't filter until submitting a form.
for). Visually-hidden label, but nested in a details/summary group called "Filter Aliases", which makes 3 different terms!aria-describedby)admin/people) - This one is doesn't filter until submitting a form. 1 text input, 3 select.
for). These are user entity fields.aria-describedby)Establish better consistency among these and/or consider whether the differences are justifiable.
They can be grouped in certain prupose + behaviours, in which case aim for consistency in each group pattern:
Accessibility:
<label for> instead of falling back to lengthy title attributes.#description to HTML title attribute, as this is more robust and reaches more users.TBD - use child issues where appropriate.
for attribute to associate the label.for attribute to associate the label.TBD. Consistency for accessibility and usability.
None.
None/
Comments
Comment #2
andrewmacpherson commentedThe survey in the issue would be easier to make sense of in a table.
Comment #3
andrewmacpherson commentedComment #4
andrewmacpherson commentedComment #6
andrewmacpherson commentedClaritying, this issue is about the labelling of the field.
There are various other issues relating to the JS behaviour, so I've gathered them together in a parent plan,
Comment #7
andrewmacpherson commentedComment #17
mgiffordhttps://www.w3.org/WAI/WCAG21/Understanding/labels-or-instructions.html