We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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:
Focused:
When focused the label receives the color theme.palette.primary.main, which fades into background.
The text was updated successfully, but these errors were encountered:
It would be better for it to receive the color theme.palette.primary.dark, as in this demo.
Sorry, something went wrong.
Instead switched to secondary palette, but in general these are helpful for targeting pseudoclasses:
https://medium.com/the-clever-dev/override-textfield-border-color-for-different-states-in-material-ui-2b61590d89ab mui/material-ui#11244
I found this worked:
const useStyles = makeStyles((theme) => ({ root: { '&$focused': { color: theme.palette.primary.dark, }, }, focused: {}, }));
...
<InputLabel id="select-label" classes={{ root: classes.root, focused: classes.focused, }}
No branches or pull requests
Unfocused:
Focused:
When focused the label receives the color theme.palette.primary.main, which fades into background.
The text was updated successfully, but these errors were encountered: