Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip Accessibility #1012

Closed
TheSharpieOne opened this issue May 9, 2018 · 1 comment
Closed

Tooltip Accessibility #1012

TheSharpieOne opened this issue May 9, 2018 · 1 comment

Comments

@TheSharpieOne
Copy link
Member

Based on https://www.w3.org/TR/wai-aria-practices/#tooltip it should

  • never receives focus. Focus stays on the textbox.
  • be shown via keyboard focus or by the onmouse event.
  • be hidden by removing focus from the text box or by moving the mouse off the textbox.
  • be hidden by pressing the Escape key (bootstrap currently doesn't do this)

Also,

  • The element that serves as the tooltip container has role tooltip.
  • The element that triggers the tooltip references the tooltip element with aria-describedby. (not sure if this is realistic or possible, we probably depend on the developer using the component to add this, but it would be nice if it happened automatically while keeping the current API for tooltips which allows them to be disjoint from their trigger)
@TheSharpieOne
Copy link
Member Author

Not 100% sure if Popover is more like a tooltip of a dialog/modal of sorts. We definitely don't want mouse events other than click opening/closing it...

RockinRonE added a commit to RockinRonE/reactstrap that referenced this issue May 17, 2018
RockinRonE added a commit to RockinRonE/reactstrap that referenced this issue May 17, 2018
RockinRonE added a commit to RockinRonE/reactstrap that referenced this issue May 17, 2018
RockinRonE added a commit to RockinRonE/reactstrap that referenced this issue May 21, 2018
RockinRonE added a commit to RockinRonE/reactstrap that referenced this issue May 21, 2018
RockinRonE added a commit to RockinRonE/reactstrap that referenced this issue May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant