Skip to content

Commit

Permalink
fix(toast): adjust the layout of custom content (#1490)
Browse files Browse the repository at this point in the history
* Changed some utilities in the markup of "Toast > Custom content" example to adjust the layout
  • Loading branch information
louismaximepiton authored Sep 14, 2022
1 parent 5bd74eb commit e6bca20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions site/content/docs/5.2/components/toasts.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ Customize your toasts by removing sub-components, tweaking them with [utilities]
{{< example class="bg-light" >}}
<div class="toast align-items-center" role="alert" aria-live="assertive" aria-atomic="true">
<div class="d-flex">
<div class="toast-body">
<div class="toast-body my-auto">
Hello, world! This is a toast message.
</div>
<button type="button" class="btn-close me-2 m-auto" data-bs-dismiss="toast"><span class="visually-hidden">Close</span></button>
<button type="button" class="btn-close ms-auto" data-bs-dismiss="toast"><span class="visually-hidden">Close</span></button>
</div>
</div>
{{< /example >}}
Expand All @@ -185,10 +185,10 @@ Building on the above example, you can create different toast color schemes with
{{< example class="bg-light" >}}
<div class="toast align-items-center text-bg-secondary border-0" role="alert" aria-live="assertive" aria-atomic="true">
<div class="d-flex">
<div class="toast-body">
<div class="toast-body my-auto">
Hello, world! This is a toast message.
</div>
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast"><span class="visually-hidden">Close</span></button>
<button type="button" class="btn-close btn-close-white ms-auto" data-bs-dismiss="toast"><span class="visually-hidden">Close</span></button>
</div>
</div>
{{< /example >}}
Expand Down

0 comments on commit e6bca20

Please sign in to comment.