web/elements: Add light mode custom css handling (#14944)
* fix(ui): Add light mode custom css handling Signed-off-by: CodeMax IT Solutions Pvt. Ltd. <137166088+cdmx1@users.noreply.github.com> * Update Base.ts Signed-off-by: CodeMax IT Solutions Pvt. Ltd. <137166088+cdmx1@users.noreply.github.com> --------- Signed-off-by: CodeMax IT Solutions Pvt. Ltd. <137166088+cdmx1@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
b8cf0e5dc4
commit
3bf9cf681a
@ -123,6 +123,9 @@ export class AKElement extends LitElement {
|
|||||||
applyUITheme(nextStyleRoot, UiThemeEnum.Dark, this.#customCSSStyleSheet);
|
applyUITheme(nextStyleRoot, UiThemeEnum.Dark, this.#customCSSStyleSheet);
|
||||||
|
|
||||||
this.activeTheme = UiThemeEnum.Dark;
|
this.activeTheme = UiThemeEnum.Dark;
|
||||||
|
} else if (this.preferredColorScheme === "light") {
|
||||||
|
applyUITheme(nextStyleRoot, UiThemeEnum.Light, this.#customCSSStyleSheet);
|
||||||
|
this.activeTheme = UiThemeEnum.Light;
|
||||||
} else if (this.preferredColorScheme === "auto") {
|
} else if (this.preferredColorScheme === "auto") {
|
||||||
createUIThemeEffect(
|
createUIThemeEffect(
|
||||||
(nextUITheme) => {
|
(nextUITheme) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user