I'm creating a custom side Navigation Bar in React.js using MUI components with a right border.
const SideNav = () => {
return (
<Stack
sx={{
bgcolor: 'background.paper',
borderColor: 'grey.500', //I want to color my border to grey.500
borderRight: 1,
top: 0,
left: 0,
position: 'fixed',
width: 80,
height: 1
}}
>
<Stack alignItems="center" spacing={2}>
<IconButton color="primary" aria-label="delete" size="large">
<DeleteIcon fontSize="medium" />
</IconButton>
</Stack>
</Stack>
)
}
export default SideNav
The problem is that I can't change the color of the right border using the Theme color of the MUI (Material UI) system. Even if I set sx={{borderColor: 'grey.500'}} it always default to black color. And also this Application executes normally without any error, but the border-color remains default black.
