From: Christian Oliff Date: Thu, 30 Apr 2026 10:18:30 +0000 (+0900) Subject: Docs: Cheatsheet example updates (#42361) X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=60838ebfa7b30ca09268c12dfb1a3580a183a6cc;p=thirdparty%2Fbootstrap.git Docs: Cheatsheet example updates (#42361) Co-authored-by: Julien Déramond --- diff --git a/site/src/assets/examples/cheatsheet/index.astro b/site/src/assets/examples/cheatsheet/index.astro index 5d5617f7c9..dde351b6a7 100644 --- a/site/src/assets/examples/cheatsheet/index.astro +++ b/site/src/assets/examples/cheatsheet/index.astro @@ -244,7 +244,7 @@ export const body_class = 'bg-body-tertiary' Cell Cell `, - ...getData('theme-colors').map((themeColor) => ` + ...getData('theme-colors').map((themeColor) => ` ${themeColor.title} Cell Cell @@ -623,42 +623,33 @@ export const body_class = 'bg-body-tertiary'
-
-

- -

-
-
- This is the first item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow. -
+
+ + Accordion Item #1 + + +
+ This is the first item's accordion body. It is shown by default because the open attribute is present. The native <details> element handles all the show/hide logic without any JavaScript. You can put any HTML content within the .accordion-body.
-
-
-

- -

-
-
- This is the second item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow. -
+ +
+ + Accordion Item #2 + + +
+ This is the second item's accordion body. The name attribute groups this with other accordion items. When you open this item, any other open item in the same group will close automatically.
-
-
-

- -

-
-
- This is the third item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow. -
+ +
+ + Accordion Item #3 + + +
+ This is the third item's accordion body. This exclusive accordion behavior is built into the browser—no Bootstrap JavaScript required. Just use matching name attributes on your <details> elements.
-
+
`} />
@@ -697,18 +688,18 @@ export const body_class = 'bg-body-tertiary'
Example heading New

-

Example heading New

-

Example heading New

-

Example heading New

-

Example heading New

-

Example heading New

-

Example heading New

-

Example heading New

+

Example heading New

+

Example heading New

+

Example heading New

+

Example heading New

+

Example heading New

+

Example heading New

+

Example heading New

+

Example heading New

`} /> ` - ${themeColor.title} + ${themeColor.title} `)} />
@@ -722,9 +713,21 @@ export const body_class = 'bg-body-tertiary' `} /> @@ -743,7 +746,11 @@ export const body_class = 'bg-body-tertiary' ``]} /> ` - + + `)} /> + + ` + `)} /> A simple default list group item`, ...getData('theme-colors').map((themeColor) => ` - A simple ${themeColor.name} list group item + A simple ${themeColor.name} list group item `), `
`]} /> @@ -1202,7 +1209,7 @@ export const body_class = 'bg-body-tertiary' Bootstrap -