From 71dfb0d67688c5f54d5b47dea97e3dc6e4ff05ee Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 17 Mar 2021 11:02:23 -0700 Subject: [PATCH] Update docs to use new .show behavior and clarify some copy for first example --- site/assets/scss/_component-examples.scss | 3 --- site/content/docs/5.0/components/offcanvas.md | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/site/assets/scss/_component-examples.scss b/site/assets/scss/_component-examples.scss index 91b5bbfd3e9a..534f2307d15c 100644 --- a/site/assets/scss/_component-examples.scss +++ b/site/assets/scss/_component-examples.scss @@ -206,10 +206,7 @@ .offcanvas { position: static; - display: block; height: 200px; - visibility: visible; - transform: translateX(0); } } diff --git a/site/content/docs/5.0/components/offcanvas.md b/site/content/docs/5.0/components/offcanvas.md index 347242bb9351..bee8e88d091f 100644 --- a/site/content/docs/5.0/components/offcanvas.md +++ b/site/content/docs/5.0/components/offcanvas.md @@ -25,10 +25,10 @@ Offcanvas is a sidebar component that can be toggled via JavaScript to appear fr ### Offcanvas components -Below is a _static_ offcanvas example (meaning its `position`, `display`, and `visibility` have been overridden). Offcanvas includes support for a header with a close button and an optional body class for some initial `padding`. We suggest that you include offcanvas headers with dismiss actions whenever possible, or provide an explicit dismiss action. +Below is an offcanvas example that is shown by default (via `.show` on `.offcanvas`). Offcanvas includes support for a header with a close button and an optional body class for some initial `padding`. We suggest that you include offcanvas headers with dismiss actions whenever possible, or provide an explicit dismiss action. -{{< example class="bd-example-offcanvas p-0 bg-light" >}} -
+{{< example class="bd-example-offcanvas p-0 bg-light overflow-hidden" >}} +
Offcanvas