Skip to content

Commit 34a9cae

Browse files
authored
fix: indicate normal value in aura-scheme-control (#10533)
1 parent 834b956 commit 34a9cae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/aura/aura-scheme-control.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class AuraSchemeControl extends AuraControl {
156156

157157
// 2) Else read from computed CSS on :root
158158
const computed = getComputedStyle(document.documentElement).getPropertyValue(this.#prop).trim(); // "light" | "dark" | "light dark" | ""
159-
const initial = this.#isValid(computed) ? computed : 'light dark';
159+
const initial = this.#isValid(computed) ? computed : 'normal';
160160
this.#select(initial);
161161
// Don’t override stylesheet on load; only reflect the choice in UI.
162162
}
@@ -168,7 +168,7 @@ class AuraSchemeControl extends AuraControl {
168168

169169
// Re-read stylesheet-driven value; default to "light dark"
170170
const token = getComputedStyle(document.documentElement).getPropertyValue(this.#prop).trim();
171-
const value = this.#isValid(token) ? token : 'light dark';
171+
const value = this.#isValid(token) ? token : 'normal';
172172

173173
// Update UI (no persist, no inline set)
174174
this.#select(value);

0 commit comments

Comments
 (0)