According to the docs, material UI provides certain pseudo-classes when the component is in a certain state, such as selected
I have tried to make use of this pseudo-class
const styles = makeStyles({
tab: {
textTransform: "lowercase",
clipPath: "polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)",
"& :selected": {
backgroundColor: "purple"
}
}
})();
//...
<Tab
value={s}
label={textToShow(s)}
disabled={disableStep(s)}
className={styles.tab}
></Tab>
but I can't get the selected
selector to work.
Full example at https://codesandbox.io/s/clever-mirzakhani-mhxik?file=/src/SignUp.tsx:1746-1907