From 7cd2f480a2495dc216393e6aba659bae68d71197 Mon Sep 17 00:00:00 2001 From: Tobias Bengfort Date: Mon, 17 Feb 2025 18:40:45 +0100 Subject: [PATCH] Add color-scheme to light root selector Fixup for #37734 If `[data-bs-theme="light"]` is nested within `[data-bs-theme="dark"]`, `color-scheme` should be reset to `light`. --- scss/_root.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scss/_root.scss b/scss/_root.scss index becddf14afdc..815b6f0778e3 100644 --- a/scss/_root.scss +++ b/scss/_root.scss @@ -2,6 +2,8 @@ [data-bs-theme="light"] { // Note: Custom variable values only support SassScript inside `#{}`. + color-scheme: light; + // Colors // // Generate palettes for full colors, grays, and theme colors.