I'm trying to override the material-ui icon inside sx prop to see my icon as rounded square. Changing the color and fontSize works, but borderRadius doesn't
import * as React from 'react';
import Badge from '@mui/material/Badge';
import Crop32OutlinedIcon from '@mui/icons-material/Crop32Outlined';
export default function SimpleBadge() {
return (
<Badge badgeContent={2} color="secondary">
<Crop32OutlinedIcon
sx={{
fontSize: 24,
color: 'blue',
borderRadius: '30%'
}}
onClick={() => console.log('Icon clicked')}
/>
</Badge>
);
}
Not sure why my borderRadius is not making the change here. Am I missing something?