From c4765035948e07c516dfeab6d1f110d2a7430d33 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 15 Apr 2021 11:31:06 +0200 Subject: [PATCH] web: fix background-color on router outlet on light mode Signed-off-by: Jens Langhammer --- web/src/elements/router/RouterOutlet.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/src/elements/router/RouterOutlet.ts b/web/src/elements/router/RouterOutlet.ts index 3480b312d..ee92853e8 100644 --- a/web/src/elements/router/RouterOutlet.ts +++ b/web/src/elements/router/RouterOutlet.ts @@ -33,7 +33,12 @@ export class RouterOutlet extends LitElement { css` :host { height: 100vh; - background-color: var(--ak-dark-background, var(--pf-c-page--BackgroundColor)) !important; + background-color: var(--pf-global--BackgroundColor--light-300) !important; + } + @media (prefers-color-scheme: dark) { + :host { + background-color: var(--ak-dark-background) !important; + } } *:first-child { height: 100%;