- Issue created by @dmarcana
- Merge request !99Issue #3535719: Add the aria-label attribute to module buttons to improve accessibility → (Merged) created by Unnamed author
- 🇮🇳India vinodhini.e chennai
Hi @dmarcana,
Tested on a Drupal 11 site with the TB Mega Menu module.
Replicated the issue by creating an icon-only menu — screen readers announced buttons with no accessible name.
Inspected the HTML and confirmed missing aria-label attributes.
After applying the MR, re-tested using WAVE — no more accessibility errors related to missing labels.
Menu items are now properly announced with context (e.g., “Open main submenu”).Thanks.
- 🇺🇸United States rraney
Seeing this related issue. The button here is "empty". It needs some sort of label for accessibility.
<nav class="tbm tbm-main tbm-arrows" id="tbm-main" data-breakpoint="1199" aria-label="main navigation" data-initialized="true"> Empty button <button class="tbm-button" type="button">
What It Means
A button is empty or has no value text.Why It Matters
When navigating to a button, descriptive text must be presented to screen reader users to indicate the function of the button.How to Fix It
Place text content within the element or give the element a value attribute. -
themodularlab →
committed a45f1726 on 8.x-1.x authored by
dmarcana →
Issue #3535719 by dmarcana, themodularlab, vinodhini.e, rraney: Add the...
-
themodularlab →
committed a45f1726 on 8.x-1.x authored by
dmarcana →