In my current project, I am utilizing next.js and MUI (material-ui). The component I am working with has the following structure:
<Paper>
<List>
..
</List>
</Paper>
One issue I am facing is that when the list is scrolled, the select style of the <ListItemButton>
component goes outside of the component's rounded border.
https://i.stack.imgur.com/pXvO8.jpg
I am looking for a way to apply border-radius to the <ListItemButton>
component so that it looks natural even when scrolling occurs. Alternatively, are there any CSS tricks or solutions that could help with this problem?