What component has
|Closes the tooltip.|
Roles and attributes
The list below describes roles and attributes that component already has.
|It's a contextual text bubble that displays a description for an element that appears on pointer hover or keyboard focus.|
|Implicit on ||Any region which receives updates that are important for the user to receive, but not so rapid as to be annoying, should receive this attribute. The screen reader will speak changes whenever the user is idle.|
|Implicit on ||Tells assistive technologies to interrupt other processes to provide users with immediate notification of relevant alert container changes. Should only be used for time-sensitive/critical notifications that absolutely require the user's immediate attention.|
|Refers to the element containing the name of the tooltip.|
Considerations for developers
- Tooltips shouldn't receive focus. The focus should remain on the field, button, or link the tooltip is about.
- When open, tooltips shouldn't block a user from performing any task on the page.
- Tooltips shouldn't be revealed until a short time has passed (~1-5 seconds).
- Depending on the tooltip option you choose, there may be additional ARIA tags you should apply. Add
aria-describedby="example1"on an input field and link it to a related section with a matching ID selector
- Whenever possible, use descriptive text on your form fields that does need to be activated by a focus or hover event. Tooltips can be problematic for some assistive technologies (AT) devices.
Find live examples in the A11y style guide.
A11y style guide describes core principles for the accessible inputs and textarea.
See more accessibility recommendations in the common Accessibility guide.