EightfoldAI / octuple

The Octuple component library
MIT License
16 stars 45 forks source link

Tooltip disappears when it receives focus #763

Closed dcoblentz-eightfold closed 5 months ago

dcoblentz-eightfold commented 6 months ago

When tabbing to an item that has a tooltip, we focus the item and show the tooltip. If the user presses tab again, we focus the tooltip (which allows a screen reader to read it out) but the tooltip automatically disappears.

https://github.com/EightfoldAI/octuple/assets/119535119/3bb57324-ad2f-4748-8ea5-60a6e202f506

dkilgore-eightfold commented 6 months ago

The element that triggers the tooltip references the tooltip element with aria-describedby.

dkilgore-eightfold commented 6 months ago

Tooltips should not be included in the tab loop.

dkilgore-eightfold commented 6 months ago

Tracking with ENG-74737