]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Improve code highlighting, tweak language
authorMark Otto <markdotto@gmail.com>
Tue, 7 Apr 2026 22:05:23 +0000 (16:05 -0600)
committerMark Otto <markdotto@gmail.com>
Tue, 7 Apr 2026 22:05:23 +0000 (16:05 -0600)
site/src/content/docs/components/toggler.mdx
site/src/content/docs/guides/quickstart.mdx
site/src/scss/_syntax.scss

index f7894c294a83e393c6c41c3f045b3a21b33b7a5b..3d922fb05aba25958aaa812d9b9a92ea2e065400 100644 (file)
@@ -1,16 +1,12 @@
 ---
 title: Toggler
-description: Toggle attributes or classes using nothing but data attributes.
+description: Toggle attributes or classes on click using only data attributes and our JavaScript plugin. Works with any attribute except `id`.
 toc: true
 js: required
 ---
 
 Toggler is a pure JavaScript component that can be used to avoid writing small or one-off JavaScript snippets to create interactive elements. Instead of writing custom JavaScript, use data attributes to toggle attribute values, changes classes, and more on `click` events.
 
-<Callout type="warning">
-Toggler handles any attribute except `id`.
-</Callout>
-
 ## Examples
 
 ### Toggle class
index 7236241302aae00cf22f54e26fce7c619c670455..6a83a4d5c4aaf29406cddee29acfa035bf1dcb34 100644 (file)
@@ -34,11 +34,11 @@ Get started using Bootstrap in seconds by including our production-ready CSS and
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Bootstrap demo</title>
-       <link href="[[config:cdn.css]]" rel="stylesheet" integrity="[[config:cdn.css_hash]]" crossorigin="anonymous"> // [!code ++]
+       <link href="[[config:cdn.css]]" rel="stylesheet" integrity="[[config:cdn.css_hash]]" crossorigin="anonymous"><!--[!code highlight]-->
      </head>
      <body>
        <h1>Hello, world!</h1>
-       <script type="module" src="[[config:cdn.js_bundle]]" integrity="[[config:cdn.js_bundle_hash]]" crossorigin="anonymous"></script> // [!code ++]
+       <script type="module" src="[[config:cdn.js_bundle]]" integrity="[[config:cdn.js_bundle_hash]]" crossorigin="anonymous"></script><!--[!code highlight]-->
      </body>
    </html>
    ```
index 9f634498daea05a23df085df7360566731d461cd..239bf4a1d284cd5877716c1fcfda764d7c30ec63 100644 (file)
 
   > code {
     display: flex;
+    flex-shrink: 0;
     flex-direction: column;
-    width: fit-content;
+    width: max-content;
     min-width: 100%;
 
     .line:empty {
       min-height: 1lh;
     }
   }
-
 }
 
 .astro-code .line.highlighted {