From 1c02ef4f971afe5df75d4e1889435f3edd9f2bbd Mon Sep 17 00:00:00 2001 From: GeoSot Date: Tue, 23 Mar 2021 08:22:59 +0200 Subject: Allow offcanvas to be initialized in open state (#33382) * Update docs to use new .show behavior and clarify some copy for first example Co-authored-by: Mark Otto Co-authored-by: XhmikosR --- site/content/docs/5.0/components/offcanvas.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'site/content/docs') diff --git a/site/content/docs/5.0/components/offcanvas.md b/site/content/docs/5.0/components/offcanvas.md index 347242bb9..0e4aa1aa0 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
-- cgit v1.2.3