diff --git a/js/tests/visual/modal.html b/js/tests/visual/modal.html index efb5127b5a74..3c1b86776777 100644 --- a/js/tests/visual/modal.html +++ b/js/tests/visual/modal.html @@ -38,7 +38,7 @@
diff --git a/site/src/content/docs/components/modal.mdx b/site/src/content/docs/components/modal.mdx
index 2f2cb55557ad..7f29cb925fe7 100644
--- a/site/src/content/docs/components/modal.mdx
+++ b/site/src/content/docs/components/modal.mdx
@@ -82,7 +82,7 @@ In the above static example, we use ``, to avoid issues with the heading hie
Toggle a working modal demo by clicking the button below. It will slide down and fade in from the top of the page.
-
+
@@ -111,7 +111,7 @@ Toggle a working modal demo by clicking the button below. It will slide down and
-
+
@@ -134,7 +134,7 @@ Toggle a working modal demo by clicking the button below. It will slide down and
When backdrop is set to static, the modal will not close when clicking outside of it. Click the button below to try it.
-
+
@@ -163,7 +163,7 @@ When backdrop is set to static, the modal will not close when clicking outside o
-
+
@@ -186,7 +186,7 @@ When backdrop is set to static, the modal will not close when clicking outside o
When modals become too long for the user’s viewport or device, they scroll independent of the page itself. Try the demo below to see what we mean.
-
+
@@ -210,7 +210,7 @@ When modals become too long for the user’s viewport or device, they scroll ind
You can also create a scrollable modal that allows scrolling the modal body by adding `.modal-dialog-scrollable` to `.modal-dialog`.
-
+
@@ -245,7 +245,7 @@ You can also create a scrollable modal that allows scrolling the modal body by a
Add `.modal-dialog-centered` to `.modal-dialog` to vertically center the modal.
-
+
@@ -263,7 +263,7 @@ Add `.modal-dialog-centered` to `.modal-dialog` to vertically center the modal.
-
+
@@ -302,7 +302,7 @@ Add `.modal-dialog-centered` to `.modal-dialog` to vertically center the modal.
[Tooltips]([[docsref:/components/tooltips]]) and [popovers]([[docsref:/components/popovers]]) can be placed within modals as needed. When modals are closed, any tooltips and popovers within are also automatically dismissed.
-
+
@@ -340,7 +340,7 @@ Add `.modal-dialog-centered` to `.modal-dialog` to vertically center the modal.
Utilize the Bootstrap grid system within a modal by nesting `.container-fluid` within the `.modal-body`. Then, use the normal grid system classes as you would anywhere else.
-
+
@@ -428,7 +428,7 @@ Below is a live demo followed by example HTML and JavaScript. For more informati
-
+
@@ -461,7 +461,7 @@ Below is a live demo followed by example HTML and JavaScript. For more informati
Toggle between multiple modals with some clever placement of the `data-bs-target` and `data-bs-toggle` attributes. For example, you could toggle a password reset modal from within an already open sign in modal. **Please note multiple modals cannot be open at the same time**—this method simply toggles between two separate modals.
-
+
@@ -477,7 +477,7 @@ Toggle between multiple modals with some clever placement of the `data-bs-target
-
+
@@ -548,7 +548,7 @@ Our default modal without modifier class constitutes the “medium” size modal
...
```
-
+
@@ -562,7 +562,7 @@ Our default modal without modifier class constitutes the “medium” size modal
-
+
@@ -576,7 +576,7 @@ Our default modal without modifier class constitutes the “medium” size modal
-
+
@@ -619,7 +619,7 @@ Another override is the option to pop up a modal that covers the user viewport,
```
-
+
@@ -636,7 +636,7 @@ Another override is the option to pop up a modal that covers the user viewport,
-
+
@@ -653,7 +653,7 @@ Another override is the option to pop up a modal that covers the user viewport,
-
+
@@ -670,7 +670,7 @@ Another override is the option to pop up a modal that covers the user viewport,
-
+
@@ -687,7 +687,7 @@ Another override is the option to pop up a modal that covers the user viewport,
-
+
@@ -704,7 +704,7 @@ Another override is the option to pop up a modal that covers the user viewport,
-
+
diff --git a/site/src/content/docs/components/navbar.mdx b/site/src/content/docs/components/navbar.mdx
index 2387e83f3c3b..4ff9a3564a7d 100644
--- a/site/src/content/docs/components/navbar.mdx
+++ b/site/src/content/docs/components/navbar.mdx
@@ -632,7 +632,7 @@ In the example below, to create an offcanvas navbar that is always collapsed acr
-
+
Offcanvas
@@ -690,7 +690,7 @@ When using offcanvas in a dark navbar, be aware that you may need to have a dark
-
+
Dark offcanvas
diff --git a/site/src/content/docs/components/offcanvas.mdx b/site/src/content/docs/components/offcanvas.mdx
index eee354305341..22ccd9390a82 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
diff --git a/site/src/layouts/DocsLayout.astro b/site/src/layouts/DocsLayout.astro
index 37e6ec0c2d25..4ba1ad8db6a7 100644
--- a/site/src/layouts/DocsLayout.astro
+++ b/site/src/layouts/DocsLayout.astro
@@ -32,7 +32,7 @@ if (frontmatter.toc) {