diff --git a/site/src/content/docs/components/offcanvas.mdx b/site/src/content/docs/components/offcanvas.mdx index eee354305341..3f11d4e47477 100644 --- a/site/src/content/docs/components/offcanvas.mdx +++ b/site/src/content/docs/components/offcanvas.mdx @@ -23,7 +23,7 @@ Offcanvas is a sidebar component that can be toggled via JavaScript to appear fr 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. - +
Offcanvas
@@ -49,7 +49,7 @@ You can use a link with the `href` attribute, or a button with the `data-bs-targ Button with data-bs-target -
+
Offcanvas
@@ -77,7 +77,7 @@ Scrolling the `` element is disabled when an offcanvas and its backdrop ar Enable body scrolling -
+
Offcanvas with body scrolling
@@ -93,7 +93,7 @@ You can also enable `` scrolling with a visible backdrop. Enable both scrolling & backdrop -
+
Backdrop with scrolling
@@ -111,7 +111,7 @@ When backdrop is set to static, the offcanvas will not close when clicking outsi Toggle static offcanvas -
+
Offcanvas
@@ -133,7 +133,7 @@ Change the appearance of offcanvases with utilities to better match them to diff **Heads up!** Dark variants for components were deprecated in v5.3.0 with the introduction of color modes. Instead of manually adding classes mentioned above, set `data-bs-theme="dark"` on the root element, a parent wrapper, or the component itself. - +
Offcanvas
@@ -162,7 +162,7 @@ To make a responsive offcanvas, replace the `.offcanvas` base class with a respo
Resize your browser to show the responsive offcanvas toggle.
-
+
Responsive offcanvas
@@ -185,7 +185,7 @@ Try the top, right, and bottom examples out below. Toggle top offcanvas -
+
Offcanvas top
@@ -197,7 +197,7 @@ Try the top, right, and bottom examples out below. Toggle right offcanvas -
+
Offcanvas right
@@ -209,7 +209,7 @@ Try the top, right, and bottom examples out below. Toggle bottom offcanvas -
+
Offcanvas bottom