Problem/Motivation
(Work in progress).
I propose creating a UI standard for prioritizing for naming / labeling controls (almost directly from Adrian Roselli's post):
- Native HTML.
- Referencing existing visible text with
aria-labelledby. - Visually-hidden
labelelement, or referencing visually-hidden text witharia-labelledby. aria-label.
This is based on a Slack discussion and comments in core issues.
I'm crediting @cwilcox808 because he brought the issues with aria-label to my attention and has participated in the relevant conversations elsewhere. Also crediting @mgifford for his participation in the conversations.
References
- https://adrianroselli.com/2020/01/my-priority-of-methods-for-labeling-a-... (updated Feb. 2026)
- https://adrianroselli.com/2019/11/aria-label-does-not-translate.html (updated Jul. 2025).
- https://www.drupal.org/project/drupal/issues/2766853#comment-16649207
- https://www.drupal.org/project/drupal/issues/2766853#comment-16654030
- https://www.drupal.org/project/drupal/issues/3093378#comment-16210260
- https://drupal.slack.com/archives/C2ANFUGGG/p1754512584711269?thread_ts=...
- https://www.drupal.org/project/drupal/issues/3452724#comment-16218515
Comments
Comment #2
kentr commentedComment #3
kentr commentedComment #4
kentr commented