Update bg color based on theme (#26359)

(cherry picked from commit 21971a4df8)
This commit is contained in:
Ivana Huckova
2020-07-16 13:04:17 +02:00
committed by Dominik Prokop
parent f870bea288
commit 8673bd4974
@@ -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;