fix: hover state style of ListItems which are clickable to be in line with other buttons (#223)
* fix: hover state style of ListItems which are clickable to be in line with other buttons * fix: hover state of the SideBarStatus button
This commit is contained in:
@@ -33,10 +33,12 @@ const useStyles = makeStyles((theme: Theme) =>
|
|||||||
button: {
|
button: {
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
backgroundColor: '#2c2c2c',
|
backgroundColor: '#2c2c2c',
|
||||||
|
color: 'white',
|
||||||
|
|
||||||
// https://github.com/mui-org/material-ui/issues/22543
|
// https://github.com/mui-org/material-ui/issues/22543
|
||||||
'@media (hover: none)': {
|
'@media (hover: none)': {
|
||||||
backgroundColor: '#2c2c2c',
|
backgroundColor: '#2c2c2c',
|
||||||
|
color: 'white',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,6 +9,19 @@ declare module '@material-ui/core/styles/createPalette' {
|
|||||||
|
|
||||||
// Overwriting default components styles
|
// Overwriting default components styles
|
||||||
const componentsOverrides = (theme: Theme) => ({
|
const componentsOverrides = (theme: Theme) => ({
|
||||||
|
MuiListItem: {
|
||||||
|
button: {
|
||||||
|
'&:hover': {
|
||||||
|
backgroundColor: '#fcf2e8',
|
||||||
|
color: theme.palette.primary.main,
|
||||||
|
// https://github.com/mui-org/material-ui/issues/22543
|
||||||
|
'@media (hover: none)': {
|
||||||
|
backgroundColor: '#fcf2e8',
|
||||||
|
color: theme.palette.primary.main,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
MuiContainer: {
|
MuiContainer: {
|
||||||
root: { padding: theme.spacing(8) },
|
root: { padding: theme.spacing(8) },
|
||||||
maxWidthXs: { padding: theme.spacing(8) },
|
maxWidthXs: { padding: theme.spacing(8) },
|
||||||
|
|||||||
Reference in New Issue
Block a user