slmgc / react-hint

Tooltip component for React, Preact, Inferno

Home Page:https://react-hint.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accessibility using ARIA tags

ambrwlsn opened this issue · comments

commented

Hey, I am wondering if it's possible to ensure the tooltip is accessible. Perhaps using one of the examples listed here? Have you ever considered the use of ARIA tags for the tooltip? Thanks

Hi, I don't want to bind tooltips to some existing attributes (title, aria-*, etc) as it might not always be an intent, thus they use an explicit custom attribute by default. You can change the default attribute of the tooltip to "aria-describedby", for example, this should cover your case.

Resolving, please feel free to re-open in case you'll have any concerns.