I am struggling to change the border color of stars in Material UI Rating because my background color is black, making it difficult to see when the star is empty!
Here's the code snippet:
import Rating from '@material-ui/lab/Rating';
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles((theme) => ({
root: {
display: 'flex',
flexDirection: 'column',
'& > * + *': {
marginTop: theme.spacing(1),
},
},
}));
Within the functional component:
<div className={classes.root}>
<Rating name="half-rating-read" defaultValue={finalAverage} precision={0.5} readOnly />
</div>