mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
Add a new test use case
This commit is contained in:
parent
059bb59e66
commit
761d57e2aa
@ -12,7 +12,7 @@ toc: true
|
||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
||||
{{< /example >}}
|
||||
|
||||
## Dark Close Button
|
||||
## Dark Variant
|
||||
|
||||
{{< example >}}
|
||||
<div class="bg-dark p-2">
|
||||
@ -55,3 +55,21 @@ toc: true
|
||||
</div>
|
||||
</div>
|
||||
{{< /example >}}
|
||||
|
||||
## Toast and Close Button issue
|
||||
|
||||
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 >}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user