From 8673bd49748b2e09bbbb2f6b09e0a36fd913fc25 Mon Sep 17 00:00:00 2001 From: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> Date: Wed, 15 Jul 2020 20:27:28 +0200 Subject: [PATCH] Update bg color based on theme (#26359) (cherry picked from commit 21971a4df841a30056af162b2ff6c8307d2a9545) --- public/app/core/components/Login/LoginLayout.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/core/components/Login/LoginLayout.tsx b/public/app/core/components/Login/LoginLayout.tsx index e0ccd7f86cf..b0cc15baf6b 100644 --- a/public/app/core/components/Login/LoginLayout.tsx +++ b/public/app/core/components/Login/LoginLayout.tsx @@ -44,12 +44,13 @@ to{ }`; export const getLoginStyles = (theme: GrafanaTheme) => { + const bgColor = theme.isDark ? theme.palette.black : theme.palette.white; return { container: css` min-height: 100vh; background-position: center; background-repeat: no-repeat; - background-color: ${theme.palette.black}; + background-color: ${bgColor}; min-width: 100%; margin-left: 0; display: flex;