]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add `[data-bs-theme="body"]`
authorlouismaxime.piton <louismaxime.piton@orange.com>
Fri, 15 Sep 2023 13:02:46 +0000 (15:02 +0200)
committerlouismaxime.piton <louismaxime.piton@orange.com>
Fri, 15 Sep 2023 13:02:46 +0000 (15:02 +0200)
scss/_root.scss
scss/mixins/_color-mode.scss
scss/tests/mixins/_color-modes.test.scss

index becddf14afdcccbeb5374c6ecc0c9a3920e76866..e6ef0b155303f0f87d5ebc3b4e6cc650fa274fb1 100644 (file)
@@ -1,4 +1,5 @@
 :root,
+:root[data-bs-theme="light"] [data-bs-theme="body"],
 [data-bs-theme="light"] {
   // Note: Custom variable values only support SassScript inside `#{}`.
 
index 03338b0256759f7d71560864801cda8cadf9a4bf..d2114621a22329f0ff9d2154ff8bce66222f7021 100644 (file)
@@ -13,6 +13,7 @@
       }
     }
   } @else {
+    :root[data-bs-theme="#{$mode}"] [data-bs-theme="body"],
     [data-bs-theme="#{$mode}"] {
       @content;
     }
index 9ecc628deabe78e69dbd78d1babdadafa7101de9..7f383233cdef2333ade7b0e94aa678219cc4b2e0 100644 (file)
         }
       }
       @include expect() {
+        :root[data-bs-theme=dark] [data-bs-theme=body] .element,
         [data-bs-theme=dark] .element {
           color: var(--bs-primary-text-emphasis);
           background-color: var(--bs-primary-bg-subtle);
         }
+        :root[data-bs-theme=dark] [data-bs-theme=body],
         [data-bs-theme=dark] {
           --custom-color: #3a3ff8;
         }