I am attempting to customize the MUI5 checkbox CSS fields, and here is the current status:
https://i.stack.imgur.com/BROpS.png
These are my CSS classes:
MuiCheckbox: {
styleOverrides: {
root: {
".MuiSvgIcon-root": {
backgroundColor: "white",
},
},
},
},
Here is the structure:
<svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-7w1q46-MuiSvgIcon-root" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="CheckBoxIcon">
<path id="kk" d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"></path>
</svg>
My query is how can I remove the white border without removing the background color? (as removing the background color makes the inner check transparent)