How to fix aria tooltip name on Adobe Commerce (Magento)

Add a visible, descriptive text label to every element that has role="tooltip" so screen readers can announce its purpose.

Steps for Adobe Commerce (Magento)

  1. Tooltip elements in Adobe Commerce are typically rendered in PHTML templates or JavaScript UI components (Knockout.js). Search your theme's app/design/frontend/<Vendor>/<theme>/ directory for 'role="tooltip"' or 'data-tooltip' attributes.
  2. For PHTML-based tooltips, open the relevant template file (common locations: Magento_Catalog/templates/product/, Magento_Ui/templates/) and add an aria-label attribute or visible text content to the tooltip element.
  3. For JavaScript/Knockout-rendered tooltips (common in checkout, forms, or product configurators), locate the corresponding .html Knockout template file and add aria-label using Knockout binding: <div role="tooltip" data-bind="attr: { 'aria-label': tooltipText }"><!-- ko text: tooltipText --><!-- /ko --></div>.
  4. If using a third-party extension for tooltips (e.g., Amasty, MageWorx), check the extension's admin configuration panel under Stores → Configuration for label/accessibility text fields, or override its template in your custom theme.
  5. Run bin/magento setup:static-content:deploy and bin/magento cache:flush after template changes, then test with a screen reader or axe browser extension.
Official Adobe Commerce (Magento) documentation ↗
<div role="tooltip" id="wishlist-tip" aria-label="Add to wishlist">
  Add to wishlist
</div>

<!-- OR using aria-labelledby -->
<div role="tooltip" id="shipping-tip" aria-labelledby="shipping-tip-text">
  <span id="shipping-tip-text">Free shipping on orders over $50</span>
</div>

What is aria tooltip name?

A tooltip is a small pop-up element that appears when a user hovers over or focuses on something — think of the little "Add to wishlist" bubble that appears when you hover over a heart icon. In HTML, these are built using `role="tooltip"`. The problem flagged here (WCAG 4.1.2) is that your tooltip element has no accessible name — in other words, the tooltip contains no text (or the text is hidden from assistive technology), so a screen reader has nothing to read aloud. An accessible name is simply the label a screen reader announces when it reaches that element.

Screen-reader users — who may be blind, have low vision, or rely on keyboard-only navigation — depend entirely on accessible names to understand what a tooltip communicates. Without one, the tooltip is completely silent: the user either hears nothing or hears a meaningless "tooltip" announcement with no content. This is a direct failure of WCAG 2.1 Success Criterion 4.1.2 (Name, Role, Value), which is a Level AA requirement that governs legal accessibility compliance in the US (ADA), EU (EAA), UK (PSBAR), and many other jurisdictions. Inaccessible tooltips create real legal exposure for your business and exclude a significant portion of potential customers. Fixing them improves trust, usability, and demonstrates commitment to inclusive commerce.

See the complete Aria tooltip name guide for every platform and the full background.

Not sure if your Adobe Commerce (Magento) store has this?

Run a free SEOLZ audit — we’ll find aria tooltip name and every other issue across your whole site.

Scan my site free

Fix aria tooltip name on another platform