Skip to content

Commit

Permalink
Update packages/documentation/src/stories/components/card-control/car…
Browse files Browse the repository at this point in the history
…d-control.docs.mdx

Co-authored-by: Philipp Gfeller <[email protected]>
  • Loading branch information
oliverschuerch and gfellerph authored Mar 28, 2024
1 parent 49334a4 commit 7437ffb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ If this is not enough, you can also use the named `icon` slot and add your very

If you need to add other content to the component, you can use the default slot to do so.

<div className="alert alert-md alert-warning">Even if it is generally possible, we do not recommend using interactive elements in this slot for accessibility reasons.</div>
<div className="alert alert-md alert-warning">Even if it is generally possible, we do not recommend using interactive elements in this slot. <p>Valid markup: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Block-level_contentt" target="_blank">block content</a>.<p className="alert alert-sm alert-warning">Even if it is generally possible, we do not recommend using interactive elements in this slot because the background of the card control is clickable. This can lead to confusion when the hit box of nested interactive controls is not clearly separated from the background, is invalid HTML and click events bubbling up to the card control will unexpectedly toggle it if they're not captured. More info: <a href="https://accessibilityinsights.io/info-examples/web/nested-interactive/">https://accessibilityinsights.io/info-examples/web/nested-interactive/</a></p></div>

<Canvas of={CardControlStories.CustomContent} />

Expand Down

0 comments on commit 7437ffb

Please sign in to comment.