feat: set accent color buttons hover colors
This commit is contained in:
1 parent
9fb6db6921
commit
5eca39cd04
2 files changed
+11
No files matched your search
@@ -259,6 +259,8 @@ Look up for
|
||||
"red"
|
||||
"white"
|
||||
{ text, bg, border }
|
||||
.light
|
||||
.dark
|
||||
|
||||
|
||||
theme.palette.unresolved
|
||||
|
||||
@@ -45,6 +45,15 @@ const baseTheme = (palette) => ({
|
||||
styleOverrides: {
|
||||
root: ({ theme }) => ({
|
||||
variants: [
|
||||
{
|
||||
props: (props) => props.color === "accent",
|
||||
style: {
|
||||
"&:hover": {
|
||||
color: theme.palette.accent.main,
|
||||
backgroundColor: theme.palette.accent.contrastText,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
props: (props) => props.variant === "group",
|
||||
style: {
|
||||
|
||||
Reference in new issue
Block a user