Skip to main content
Question

A11Y WCAG AA (accessible) friendly hovers - background change vs auxilliary components

  • May 5, 2026
  • 0 replies
  • 5 views

Tomasz5

I have a button which is created in the library file in the way it has hover state while hovering:

The same button, according to the WCAG AA requirements must have a tooltip on hover (and when it’s focused while using keyboard navigation but it’s not the case here) https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions

The current interaction mechanism doesn’t allow to display a tooltip on hover from the project level as the hover variant interaction is already reserved on the library level. The screenshot from the project:

 

Theoretically I can create a button component which already has a tooltip, like this - the variant size is equal to the button size.

It means the tooltip belongs to the bottom button and is displayed outside of the variant:




This approach works with some autolayouts:

1.1 Each horizontal row has the autolayout inside. And the list consisted of the gray rows and form field above (truncated on the screenshot) also has the autolayout applied.
1.2 Button hover.
2.1 Table with the autolayout. Each row is a separate row so they have forced order of appearance. If I change the order and move the table header row (the gray one with the icon) above the row with the “20” pagination select field, I’ll loose the ability to see the pagination dropdown when it’s expanded.


Regardless of the issue from 2.1 image, the main flaws are unavailability to override the tooltip text and control how the text wraps. Also, if the tooltip text is longer and is displayed near the edge of the screen I won’t be able to move it in a way the tooltip adjusts within the given space, implementation-wise. It will truncate the tooltip instead:

3.1 Right edge of the tooltip is truncated. Additionally I can’t make the text wrap from the project level.

 

Any ideas how to approach the WCAG standard when it comes to hovers and auxilliary components like tooltips displayed at the same time?
Theoretically I could remove all the background hover changes as the WCAG requirements don’t require them as mandatory but the whole design system in Figma would become inconsistent with the coded one and it looks like a really bad trade-off.

 

Cheers