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',
@@ -40,6 +40,9 @@ const useStyles = makeStyles({
'-webkit-line-clamp': 10,
'-webkit-box-orient': 'vertical',
},
primary: {
color: ({ palette }: any) => palette.primary.light,
},
});
export type TemplateCardProps = {
@@ -85,7 +88,7 @@ export const TemplateCard = ({
<Box className={classes.description}>{description}</Box>
</CardContent>
<CardActions>
<Button color="primary" to={href}>
<Button className={classes.primary} to={href}>
Choose
</Button>
</CardActions>