Skip to content

Conversation

@patrickhlauke
Copy link
Member

No description provided.

### 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.
Copy link
Member

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.

<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>
Copy link
Member

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>

@Johann-S
Copy link
Member

Johann-S commented Jan 2, 2018

I think we should update popover.md too 🤔

@patrickhlauke
Copy link
Member Author

@Johann-S good point, will tackle popover.md in a separate PR (as i need to ponder some further complications there, related to having focusable/interactive content in popover and how it's currently borked for kbd users)

@patrickhlauke
Copy link
Member Author

@mdo changes made. good to go?

@patrickhlauke
Copy link
Member Author

@Johann-S or @andresgalante ... mind giving this a green light if you feel it's ok?

Copy link
Member

@Johann-S Johann-S left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@patrickhlauke
Copy link
Member Author

cool thanks @Johann-S

@patrickhlauke patrickhlauke merged commit 8462cc2 into twbs:v4-dev Jan 2, 2018
@mdo mdo mentioned this pull request Jan 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants