Merge pull request #2429 from anuragparashar26/develop
fix: update TextInput border color to match dropdown (#2406)
This commit is contained in:
1 file changed
+9
-3
@@ -305,7 +305,7 @@ const baseTheme = (palette) => ({
|
|||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: ({ theme }) => ({
|
root: ({ theme }) => ({
|
||||||
"& fieldset": {
|
"& fieldset": {
|
||||||
borderColor: theme.palette.primary.contrastBorder,
|
borderColor: theme.palette.primary.lowContrast,
|
||||||
borderRadius: theme.shape.borderRadius,
|
borderRadius: theme.shape.borderRadius,
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -324,18 +324,22 @@ const baseTheme = (palette) => ({
|
|||||||
/* borderColor: theme.palette.primary.contrastText, */
|
/* borderColor: theme.palette.primary.contrastText, */
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
"& .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.primary.main} inset`,
|
WebkitBoxShadow: `0 0 0px 1000px ${theme.palette.primary.main} inset`,
|
||||||
WebkitTextFillColor: theme.palette.primary.contrastText,
|
WebkitTextFillColor: theme.palette.primary.contrastText,
|
||||||
},
|
},
|
||||||
|
|
||||||
"& .MuiInputBase-input.MuiOutlinedInput-input": {
|
"& .MuiInputBase-input.MuiOutlinedInput-input": {
|
||||||
padding: "0 var(--env-var-spacing-1-minus) !important",
|
padding: "0 var(--env-var-spacing-1-minus) !important",
|
||||||
},
|
},
|
||||||
|
|
||||||
"& .MuiOutlinedInput-root": {
|
"& .MuiOutlinedInput-root": {
|
||||||
color: theme.palette.primary.contrastTextSecondary,
|
color: theme.palette.primary.contrastTextSecondary,
|
||||||
borderRadius: 4,
|
borderRadius: 4,
|
||||||
},
|
},
|
||||||
|
|
||||||
"& .MuiOutlinedInput-notchedOutline": {
|
"& .MuiOutlinedInput-notchedOutline": {
|
||||||
borderRadius: 4,
|
borderRadius: 4,
|
||||||
},
|
},
|
||||||
@@ -346,6 +350,7 @@ const baseTheme = (palette) => ({
|
|||||||
fontSize: "var(--env-var-font-size-medium)",
|
fontSize: "var(--env-var-font-size-medium)",
|
||||||
marginLeft: 0,
|
marginLeft: 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
"& .MuiFormHelperText-root.Mui-error": {
|
"& .MuiFormHelperText-root.Mui-error": {
|
||||||
opacity: 0.8,
|
opacity: 0.8,
|
||||||
fontSize: "var(--env-var-font-size-medium)",
|
fontSize: "var(--env-var-font-size-medium)",
|
||||||
@@ -355,6 +360,7 @@ const baseTheme = (palette) => ({
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
MuiOutlinedInput: {
|
MuiOutlinedInput: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: {
|
root: {
|
||||||
@@ -365,12 +371,12 @@ const baseTheme = (palette) => ({
|
|||||||
borderColor: palette.primary.contrastBorderDisabled,
|
borderColor: palette.primary.contrastBorderDisabled,
|
||||||
},
|
},
|
||||||
"&:hover .MuiOutlinedInput-notchedOutline": {
|
"&:hover .MuiOutlinedInput-notchedOutline": {
|
||||||
borderColor: palette.primary.contrastText, // Adjust hover border color
|
borderColor: palette.primary.lowContrast, // Adjust hover border color
|
||||||
},
|
},
|
||||||
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
||||||
borderColor: palette.accent.main, // Adjust focus border color
|
borderColor: palette.accent.main, // Adjust focus border color
|
||||||
},
|
},
|
||||||
color: palette.primary.contrastTextTertiary,
|
color: palette.primary.contrastText,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user