Support and Choose buttons had wrong color contrast on dark mode

Signed-off-by: Johnn Mis <v-jmis@expediagroup.com>
This commit is contained in:
Johnn Mis
2021-02-26 09:57:20 -06:00
parent 98387ac6b5
commit e357264301
3 changed files with 9 additions and 2 deletions
@@ -43,6 +43,9 @@ const useStyles = makeStyles(theme => ({
minWidth: 260,
maxWidth: 400,
},
primary: {
color: theme.palette.primary.light,
},
}));
const SupportIcon = ({ icon }: { icon: string | undefined }) => {
@@ -98,7 +101,7 @@ export const SupportButton = ({ children }: PropsWithChildren<Props>) => {
<Fragment>
<Button
data-testid="support-button"
color="primary"
className={classes.primary}
onClick={onClickHandler}
>
<HelpIcon className={classes.leftIcon} />
+1
View File
@@ -104,6 +104,7 @@ export const darkTheme = createTheme({
primary: {
main: '#2E77D0',
},
tonalOffset: 0.45,
banner: {
info: '#2E77D0',
error: '#E22134',