Skip to content

Commit

Permalink
Add a new test use case
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Dec 29, 2024
1 parent 059bb59 commit 2a67d59
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions site/content/docs/5.3/components/close-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,21 @@ toc: true
</div>
</div>
{{< /example >}}

## Toast + Close Button issue in 39765

Forcing `data-bs-theme="light"` didn't work in dark mode. Now, the cross button is always dark.

{{< example >}}
<div class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header bg-warning" data-bs-theme="light">
<img src="..." class="rounded me-2" alt="...">
<strong class="me-auto">Warning!</strong>
<small>11 mins ago</small>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
This is a warning message.
</div>
</div>
{{< /example >}}

0 comments on commit 2a67d59

Please sign in to comment.