Skip to content

Commit

Permalink
Fix contrast issues #354
Browse files Browse the repository at this point in the history
  • Loading branch information
tswinb committed Aug 21, 2020
1 parent 9b4d7b3 commit 05bc03f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cookieConsent/cookiesPage.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const styles = (theme: Theme): StyleRules =>
},
titleText: {
fontWeight: 'bold',
color: theme.palette.primary.main,
color: theme.palette.secondary.main,
},
cookiePolicy: {
marginTop: theme.spacing(2),
Expand Down
4 changes: 2 additions & 2 deletions src/homePage/homePage.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const styles = (theme: Theme): StyleRules =>
},
howItWorksGridItemCaption: {
textAlign: 'center',
color: theme.palette.primary.main,
color: theme.palette.secondary.main,
},
strapline: {
paddingTop: 50,
Expand All @@ -74,7 +74,7 @@ const styles = (theme: Theme): StyleRules =>
paddingTop: 20,
fontWeight: 'bold',
fontStyle: 'italic',
color: theme.palette.primary.main,
color: theme.palette.secondary.main,
},
});

Expand Down
17 changes: 15 additions & 2 deletions src/theming.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ export const buildTheme = (darkModePreference: boolean): Theme => {
// Light/dark mode
type: 'dark',
primary: {
main: '#1E5DF8',
main: '#003088',
},
secondary: {
main: '#333333',
main: '#80ACFF',
},
background: {
default: '#212121',
Expand All @@ -85,6 +85,19 @@ export const buildTheme = (darkModePreference: boolean): Theme => {
},
},
drawerWidth: 300,
overrides: {
MuiLink: {
root: {
color: '#80ACFF',
},
},
MuiTabs: {
indicator: {
color: '#80ACFF',
textDecoration: 'underline',
},
},
},
};
} else {
options = {
Expand Down

0 comments on commit 05bc03f

Please sign in to comment.