Rule: Accessible name is descriptive

Rule ID Widget 12
Conformance Required
Definition The accessible name for elements with ARIA widget roles on a page must sufficiently describe its purpose.
Purpose
  • Labels that are sufficiently descriptive make it possible for people to understand the purposes of elements with widget roles on the page.
Conformance Required
WCAG Success Criteria

Success Criterion 2.4.6 Headings and Labels

Rule Category ARIA Widgets
Rule Scope Element
Techniques
  • In some cases the child text nodes and alt from descendant image elements will be used as the label for elements with widget roles.
  • Use aria-labelledby attribute to reference the id(s) of the elements on the page to label elements with ARIA widget roles.
  • Use aria-label attribute to provide a explicit label for an element with a ARIA widget role.
  • Elements with grouping widget roles may not receive keyboard focus, but giving them a label provides users of assistive technologies a more accurate description of the purpose of the widget
Information Links