Skip to content

Commit

Permalink
fix: fixed buttons colors problem (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
danilolutz authored Feb 17, 2022
1 parent 4278f06 commit 87b127b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/app/styles/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,39 +32,41 @@ export default createGlobalStyle`
}
.primary {
background: ${(props) => props.theme.colors.primary.dark};
color: ${(props) => props.theme.colors.primary.light};
background: ${(props) => props.theme.colors.primary.dark} !important;
color: ${(props) => props.theme.colors.primary.light} !important;
&:hover {
${(props) =>
props.theme.title == 'light' &&
css`
background: ${(props) => shade(0.2, props.theme.colors.primary.dark)};
background: ${(props) =>
shade(0.2, props.theme.colors.primary.dark)} !important;
`}
${(props) =>
props.theme.title == 'dark' &&
css`
background: ${(props) => tint(0.2, props.theme.colors.primary.dark)};
background: ${(props) =>
tint(0.2, props.theme.colors.primary.dark)} !important;
`}
}
}
.secondary {
background: ${(props) => props.theme.colors.secondary.dark};
color: ${(props) => props.theme.colors.secondary.light};
background: ${(props) => props.theme.colors.secondary.dark} !important;
color: ${(props) => props.theme.colors.secondary.light} !important;
&:hover {
${(props) =>
props.theme.title == 'light' &&
css`
background: ${(props) =>
shade(0.2, props.theme.colors.secondary.dark)};
shade(0.2, props.theme.colors.secondary.dark)} !important;
`}
${(props) =>
props.theme.title == 'dark' &&
css`
background: ${(props) =>
tint(0.2, props.theme.colors.secondary.dark)};
tint(0.2, props.theme.colors.secondary.dark)} !important;
`}
}
}
Expand Down

0 comments on commit 87b127b

Please sign in to comment.