'Customizing Material UI with withStyles - not last child
i'm trying to customize the MUI List component , i'm trying to target all the divs within it but it's not working. I want to apply the border bottom to every div but the last div. thanks in advance!
const StyledListItem = withStyles({
root: {
'&:not(last-child)': {
borderBottom: '1px solid #dddddd',
},
},
})(ListItem);
Would appreciate help with the syntax!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
