Merge pull request #1460 from bluewave-labs/fix/button-contrast
Fix: group buttons contrast text
This commit is contained in:
4 files changed
+18
-3
No files matched your search
@@ -108,6 +108,12 @@ const semanticColors = {
|
|||||||
dark: paletteColors.green900,
|
dark: paletteColors.green900,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
neutral: {
|
||||||
|
contrastText: {
|
||||||
|
light: paletteColors.blueGray900,
|
||||||
|
dark: paletteColors.gray100,
|
||||||
|
},
|
||||||
|
},
|
||||||
error: {
|
error: {
|
||||||
main: {
|
main: {
|
||||||
light: paletteColors.red300,
|
light: paletteColors.red300,
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ const {
|
|||||||
success,
|
success,
|
||||||
error,
|
error,
|
||||||
warning,
|
warning,
|
||||||
|
neutral,
|
||||||
gradient: {
|
gradient: {
|
||||||
color1: { dark: color1 },
|
color1: { dark: color1 },
|
||||||
color2: { dark: color2 },
|
color2: { dark: color2 },
|
||||||
@@ -51,6 +52,9 @@ const palette = {
|
|||||||
contrastText: warning.contrastText.dark,
|
contrastText: warning.contrastText.dark,
|
||||||
dark: warning.dark.dark,
|
dark: warning.dark.dark,
|
||||||
},
|
},
|
||||||
|
neutral: {
|
||||||
|
contrastText: neutral.contrastText.dark,
|
||||||
|
},
|
||||||
/* From this part on, try to create semantic structure, not feature based structure */
|
/* From this part on, try to create semantic structure, not feature based structure */
|
||||||
percentage: {
|
percentage: {
|
||||||
uptimePoor: error.main.dark,
|
uptimePoor: error.main.dark,
|
||||||
|
|||||||
@@ -47,7 +47,8 @@ const baseTheme = (palette) => ({
|
|||||||
{
|
{
|
||||||
props: (props) => props.variant === "group",
|
props: (props) => props.variant === "group",
|
||||||
style: {
|
style: {
|
||||||
color: theme.palette.secondary.contrastText,
|
/* color: theme.palette.secondary.contrastText, */
|
||||||
|
color: theme.palette.neuter.contrastText,
|
||||||
backgroundColor: theme.palette.background.main,
|
backgroundColor: theme.palette.background.main,
|
||||||
border: 1,
|
border: 1,
|
||||||
borderStyle: "solid",
|
borderStyle: "solid",
|
||||||
@@ -238,8 +239,8 @@ const baseTheme = (palette) => ({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"& .MuiInputBase-input:-webkit-autofill": {
|
"& .MuiInputBase-input:-webkit-autofill": {
|
||||||
transition: "background-color 5000s ease-in-out 0s",
|
transition: "background-color 5000s ease-in-out 0s",
|
||||||
WebkitBoxShadow: `0 0 0px 1000px ${theme.palette.background.main} inset`,
|
WebkitBoxShadow: `0 0 0px 1000px ${theme.palette.background.main} inset`,
|
||||||
WebkitTextFillColor: theme.palette.text.primary,
|
WebkitTextFillColor: theme.palette.text.primary,
|
||||||
},
|
},
|
||||||
"& .MuiInputBase-input.MuiOutlinedInput-input": {
|
"& .MuiInputBase-input.MuiOutlinedInput-input": {
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ const {
|
|||||||
success,
|
success,
|
||||||
error,
|
error,
|
||||||
warning,
|
warning,
|
||||||
|
neutral,
|
||||||
gradient: {
|
gradient: {
|
||||||
color1: { light: color1 },
|
color1: { light: color1 },
|
||||||
color2: { light: color2 },
|
color2: { light: color2 },
|
||||||
@@ -57,6 +58,9 @@ const palette = {
|
|||||||
contrastText: warning.contrastText.light,
|
contrastText: warning.contrastText.light,
|
||||||
dark: warning.dark.light,
|
dark: warning.dark.light,
|
||||||
},
|
},
|
||||||
|
neutral: {
|
||||||
|
contrastText: neutral.contrastText.light,
|
||||||
|
},
|
||||||
/* From this part on, try to create semantic structure, not feature based structure */
|
/* From this part on, try to create semantic structure, not feature based structure */
|
||||||
percentage: {
|
percentage: {
|
||||||
uptimePoor: error.main.light,
|
uptimePoor: error.main.light,
|
||||||
|
|||||||
Reference in new issue
Block a user