Skip to content

Commit

Permalink
Adding missing offcanvas added-in shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton authored and mdo committed Jul 25, 2022
1 parent 01bf7a9 commit dc901d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions site/content/docs/5.2/components/offcanvas.md
Expand Up @@ -81,6 +81,8 @@ You can use a link with the `href` attribute, or a button with the `data-bs-targ

### Dark offcanvas

{{< added-in "5.2.0" >}}

Change the appearance of offcanvases with utilities to better match them to different contexts like dark navbars. Here we add `.text-bg-dark` to the `.offcanvas` and `.btn-close-white` to `.btn-close` for proper styling with a dark offcanvas. If you have dropdowns within, consider also adding `.dropdown-menu-dark` to `.dropdown-menu`.

{{< example class="bd-example-offcanvas p-0 bg-light overflow-hidden" >}}
Expand Down

0 comments on commit dc901d2

Please sign in to comment.