Update bg color based on theme (#26359)

This commit is contained in:
Ivana Huckova 2020-07-15 20:27:28 +02:00 committed by GitHub
parent 5fe27ee959
commit 21971a4df8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;