customisation design for navbar (#2873)

Co-authored-by: nicholas.chew <nicholas.chew@grabtaxi.com>
This commit is contained in:
Nicholas Chew
2020-10-14 18:42:19 +08:00
committed by GitHub
parent 08f5e0311f
commit e4f53f0e30
3 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ const useStyles = makeStyles<BackstageTheme>(theme => {
return {
root: {
color: '#b5b5b5',
color: theme.palette.navigation.color,
display: 'flex',
flexFlow: 'row nowrap',
alignItems: 'center',
@@ -96,7 +96,7 @@ const useStyles = makeStyles<BackstageTheme>(theme => {
selected: {
'&$root': {
borderLeft: `solid ${selectedIndicatorWidth}px ${theme.palette.navigation.indicator}`,
color: '#ffffff',
color: theme.palette.navigation.selectedColor,
},
'&$closed': {
width: drawerWidthClosed - selectedIndicatorWidth,
+4
View File
@@ -64,6 +64,8 @@ export const lightTheme = createTheme({
navigation: {
background: '#171717',
indicator: '#9BF0E1',
color: '#b5b5b5',
selectedColor: '#FFF',
},
pinSidebarButton: {
icon: '#181818',
@@ -122,6 +124,8 @@ export const darkTheme = createTheme({
navigation: {
background: '#424242',
indicator: '#9BF0E1',
color: '#b5b5b5',
selectedColor: '#FFF',
},
pinSidebarButton: {
icon: '#404040',
+2
View File
@@ -46,6 +46,8 @@ type PaletteAdditions = {
navigation: {
background: string;
indicator: string;
color: string;
selectedColor: string;
};
tabbar: {
indicator: string;