Skip to content

Commit

Permalink
docs(tooltip): interactive content example is discouraged
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcburnie committed Sep 27, 2024
1 parent da5fca9 commit ec306d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _disclosure/tooltip/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ <h2>Example 3: On an Input</h2>

<hr />

<h2>Example 4: Interactive Content</h2>
<h2>Example 4: Interactive Content (discouraged)</h2>
<p>This pattern is discouraged because a tooltip is intended to render static content only. By adding interactive content, keyboard users are now forced to interact with these elements as they navigate through the page.</p>
<div>
<span class="tooltip tooltip--padded">
<button class="button tooltip__host" type="button" aria-describedby="tooltip-3">Add to Cart</button>
Expand Down

0 comments on commit ec306d3

Please sign in to comment.