diff --git a/site/docs/4.2/components/toasts.md b/site/docs/4.2/components/toasts.md index 2f692e22d582..56c6848e98b6 100644 --- a/site/docs/4.2/components/toasts.md +++ b/site/docs/4.2/components/toasts.md @@ -25,7 +25,6 @@ To encourage extensible and predictable toasts, we recommend a header and body. Toasts are as flexible as you need and have very little required markup. At a minimum, we require a single element to contain your "toasted" content and strongly encourage a dismiss button. -
{% capture example %} {% endcapture %} -{% include example.html content=example %} -
+{% include example.html content=example class="bg-light" %} ### Translucent Toasts are slightly translucent, too, so they blend over whatever they might appear over. For browsers that support the `backdrop-filter` CSS property, we'll also attempt to blur the elements under a toast. -
{% capture example %} {% endcapture %} -{% include example.html content=example %} -
+{% include example.html content=example class="bg-dark" %} ### Stacking When you have multiple toasts, we default to vertically stacking them in a readable manner. -
{% capture example %} {% endcapture %} -{% include example.html content=example %} -
+{% include example.html content=example class="bg-light" %} ## Placement Place toasts with custom CSS as you need them. The top right is often used for notifications, as is the top middle. If you're only ever going to show one toast at a time, put the positioning styles right on the `.toast`. -
{% capture example %}
@@ -126,12 +119,10 @@ Place toasts with custom CSS as you need them. The top right is often used for n
{% endcapture %} -{% include example.html content=example %} -
+{% include example.html content=example class="bg-dark" %} For systems that generate more notifications, consider using a wrapping element so they can easily stack. -
{% capture example %}
@@ -168,12 +159,10 @@ For systems that generate more notifications, consider using a wrapping element
{% endcapture %} -{% include example.html content=example %} - +{% include example.html content=example class="bg-dark" %} You can also get fancy with flexbox utilities to align toasts horizontally and/or vertically. -
{% capture example %}
@@ -194,8 +183,7 @@ You can also get fancy with flexbox utilities to align toasts horizontally and/o
{% endcapture %} -{% include example.html content=example %} - +{% include example.html content=example class="bg-dark" %} ## Accessibility @@ -215,7 +203,6 @@ As the content you're displaying changes, be sure to update the [`delay` timeout When using `autohide: false`, you must add a close button to allow users to dismiss the toast. -
{% capture example %} {% endcapture %} -{% include example.html content=example %} -
+{% include example.html content=example class="bg-light" %} ## JavaScript behavior