geist-ui
geist-ui copied to clipboard
Make the tooltip more accessible
Feature request 🚀
- [ ] I will create Pull Request
- [x] It's just a suggestion
Expected
- Role
tooltipto the element, the serves tooltip container. - The element that invokes the tooltip refers to the tooltip element with
aria-describedby. It can be passed by the user as property or use inside with useId. Example implementation illustrated in the Radix tooltip. - Keyboard Interaction. If trigger element received focus and tooltip is not open, then it is necessary to show it.
- If the trigger loses focus, it is necessary to close the tooltip.