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"
|
"red"
|
||||||
"white"
|
"white"
|
||||||
{ text, bg, border }
|
{ text, bg, border }
|
||||||
|
.light
|
||||||
|
.dark
|
||||||
|
|
||||||
|
|
||||||
theme.palette.unresolved
|
theme.palette.unresolved
|
||||||
|
|||||||
@@ -45,6 +45,15 @@ const baseTheme = (palette) => ({
|
|||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: ({ theme }) => ({
|
root: ({ theme }) => ({
|
||||||
variants: [
|
variants: [
|
||||||
|
{
|
||||||
|
props: (props) => props.color === "accent",
|
||||||
|
style: {
|
||||||
|
"&:hover": {
|
||||||
|
color: theme.palette.accent.main,
|
||||||
|
backgroundColor: theme.palette.accent.contrastText,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
props: (props) => props.variant === "group",
|
props: (props) => props.variant === "group",
|
||||||
style: {
|
style: {
|
||||||
|
|||||||
Reference in new issue
Block a user