diff --git a/scss/_accordion.scss b/scss/_accordion.scss index a64f7070f6..f024fcc47d 100644 --- a/scss/_accordion.scss +++ b/scss/_accordion.scss @@ -148,25 +148,14 @@ } } -@include color-mode() { +@include color-mode(light, true) { --#{$prefix}accordion-btn-icon: #{escape-svg($accordion-button-icon)}; --#{$prefix}accordion-btn-active-icon: #{escape-svg($accordion-button-active-icon)}; } @if $enable-dark-mode { - @include color-mode(dark) { + @include color-mode(dark, true) { --#{$prefix}accordion-btn-icon: #{escape-svg($accordion-button-icon-dark)}; --#{$prefix}accordion-btn-active-icon: #{escape-svg($accordion-button-active-icon-dark)}; } } - -/* -[data-bs-theme="light"] .accordion -[data-bs-theme="light"].accordion -[data-bs-theme="dark"] .accordion -[data-bs-theme="dark"].accordion - -accordion data-bs-theme="dark" -
- accordion -*/ diff --git a/site/content/docs/5.3/examples/dark-mode/index.html b/site/content/docs/5.3/examples/dark-mode/index.html index 5c7ac672bc..a8a568adb9 100644 --- a/site/content/docs/5.3/examples/dark-mode/index.html +++ b/site/content/docs/5.3/examples/dark-mode/index.html @@ -7,16 +7,16 @@ body_class: "d-flex h-100"

Default theme of the page

-

Link title

+

Link title

Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatum sed ratione facilis nisi enim omnis sequi nam nemo vero, perferendis repellendus eos molestiae autem ad harum nihil vel facere quod.

Forced Light Theme On Container

-

Link title

+

Link title

Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatum sed ratione facilis nisi enim omnis sequi nam nemo vero, perferendis repellendus eos molestiae autem ad harum nihil vel facere quod.

Forced Dark Theme On Container

-

Link title

+

Link title

Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatum sed ratione facilis nisi enim omnis sequi nam nemo vero, perferendis repellendus eos molestiae autem ad harum nihil vel facere quod.


@@ -62,14 +62,14 @@ body_class: "d-flex h-100"

Forced Light mode On Container

-
+

-

-
+
This is the first item's accordion body. It is shown 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.
@@ -77,11 +77,11 @@ body_class: "d-flex h-100"

-

-
+
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.
@@ -89,11 +89,11 @@ body_class: "d-flex h-100"

-

-
+
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.
@@ -103,14 +103,14 @@ body_class: "d-flex h-100"

Forced Dark mode On Container

-
+

-

-
+
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.
@@ -118,11 +118,11 @@ body_class: "d-flex h-100"

-

-
+
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.
@@ -130,11 +130,11 @@ body_class: "d-flex h-100"

-

-
+
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.
@@ -144,14 +144,14 @@ body_class: "d-flex h-100"

Forced Light mode On Accordion

-
+

-

-
+
This is the first item's accordion body. It is shown 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.
@@ -159,11 +159,11 @@ body_class: "d-flex h-100"

-

-
+
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.
@@ -171,11 +171,11 @@ body_class: "d-flex h-100"

-

-
+
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.
@@ -185,14 +185,14 @@ body_class: "d-flex h-100"

Forced Dark mode On Accordion

-
+

-

-
+
This is the first item's accordion body. It is shown 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.
@@ -200,11 +200,11 @@ body_class: "d-flex h-100"

-

-
+
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.
@@ -212,11 +212,11 @@ body_class: "d-flex h-100"

-

-
+
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.