const useStyles = makeStyles({
paper: {
color: "var(--text-color) !important",
},
})
The CSS variable var(--text-color) changes throughout the APP based on a toggle. But the component that uses this useStyles does not change with it.
What is wrong here?
EDITED:
This fixed it:
<Autocomplete disablePortal />
Now, can someone explain why?