geist-ui icon indicating copy to clipboard operation
geist-ui copied to clipboard

Make the tooltip more accessible

Open raidenmiro opened this issue 3 years ago • 0 comments

Feature request 🚀

  • [ ] I will create Pull Request
  • [x] It's just a suggestion

Expected

  • Role tooltip to 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.

raidenmiro avatar Feb 23 '23 17:02 raidenmiro