-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unfocused Input bottom borders do not reference the theme #14446
Comments
@danielbchapman Thank you for raising this issue! I think that we should apply this change to the Thank you for raising the concern. |
Once the suggested changed is applied, you should be able to get that output with: const theme = createMuiTheme({
overrides: {
MuiFilledInput: {
underline: {
'&:before': {
borderBottom: '1px solid #FF7E00',
},
},
},
},
}); |
The above example appears to be crashing in the sandbox:
|
@gabrielliwerant Thanks, updated. |
@oliviertassinari is this still good to take? Looks like all that needs to be done is make line 80 use 'borderBottomStyle' instead of 'borderBottom', correct? |
@C-Rodg Yes, I think so :) |
Simply put, the TextField inputs do not reference the theme for the colors and instead use a hard coded transparent white:
https://github.com/mui-org/material-ui/blob/674c523dffd0997f08154bc3c513e200823ee228/packages/material-ui/src/FilledInput/FilledInput.js#L10-L13
//----------Suggested Code
const bottomLineColor = light ? theme.palette.common.underline
const backgroundColor = light ? 'rgba(0, 0, 0, 0.09)' : 'rgba(255, 255, 255, 0.09)';`
Expected Behavior 🤔
I create a theme using offwhite grey colors and I expected the components to respect that
Current Behavior 😯
The components use a hard coded value based on light or dark rather than a theme.
Steps to Reproduce 🕹
N/A this appears to be a design choice/oversight
Context 🔦
I'm trying to produce a low-light "dark amber" theme for uses who work in dark settings. Eliminating white/blue channels of light is highly desirable.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: