-
-
Notifications
You must be signed in to change notification settings - Fork 79.2k
Expand keyboard advice for tooltips, clarify what manual trigger does in table
#25163
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
Expand keyboard advice for tooltips, clarify what manual trigger does in table
#25163
Conversation
docs/4.0/components/tooltips.md
Outdated
| ### Disabled elements | ||
|
|
||
| Elements with the `disabled` attribute aren't interactive, meaning users cannot hover or click them to trigger a tooltip (or popover). As a workaround, you'll want to trigger the tooltip from a wrapper `<div>` or `<span>` and override the `pointer-events` on the disabled element. | ||
| Elements with the `disabled` attribute aren't interactive, meaning users cannot focus, hover or click them to trigger a tooltip (or popover). As a workaround, you'll want to trigger the tooltip from a wrapper `<div>` or `<span>`, ideally made keyboard-focusable using `tabindex="0"`, and override the `pointer-events` on the disabled element. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oxford comma in first sentence, please—focus, hover, or click.
docs/4.0/components/tooltips.md
Outdated
| <p>The tooltip's <code>title</code> will be injected into the <code>.tooltip-inner</code>.</p> | ||
| <p><code>.arrow</code> will become the tooltip's arrow.</p> | ||
| <p>The outermost wrapper element should have the <code>.tooltip</code> class.</p> | ||
| <p>The outermost wrapper element should have the <code>.tooltip</code> class, as well as a <code>role="tooltip"</code>.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be more succinct:
The outermost wrapper element should have the <code>.tooltip</code> class and <code>role="tooltip"</code>
|
I think we should update |
|
@Johann-S good point, will tackle |
|
@mdo changes made. good to go? |
|
@Johann-S or @andresgalante ... mind giving this a green light if you feel it's ok? |
Johann-S
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
|
cool thanks @Johann-S |
No description provided.