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
I cant override the hover effect of the Icon.
The text was updated successfully, but these errors were encountered:
Hello!
Start with a style hook like so
const useStyles = makeStyles((theme) => ({ searchIconButton: { backgroundColor: "#EFD26E", position: "relative", "&:hover": { backgroundColor: "green", }, }, }));
grab the classes object that is returned from that hook const classes = useStyles();
const classes = useStyles();
then in your component use the classes
const Component = () => { const classes = useStyles(); return ( <SearchBar classes={{ searchIconButton: classes.searchIconButton, }} /> ) }
This stack overflow helped a lot for this answer! https://stackoverflow.com/a/67920344
Sorry, something went wrong.
No branches or pull requests
I cant override the hover effect of the Icon.
The text was updated successfully, but these errors were encountered: