matcha
matcha copied to clipboard
Unnecessary svg for checkbox
I hit a problem with masked ::before for checkbox. I use this css library in website loaded inside of iframe in closed environment with very strict rules. Console contains this error:
Refused to load the image 'data:image/svg+xml;base64,PHN2.....3ZnPgo=' because it violates the following Content Security Policy directive: "default-src 'self' hidden-hostname-1 https://localhost:4746 https://localhost:4748 hidden-hostname-2 'unsafe-inline' 'unsafe-eval'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback.
Even if you don't use this svg and remove ::before, the checkbox looks good
Would it be possible to remove this custom svg for checkbox?
Hi ! I'll look into it in the near future, it'd also reduce the overall build size too so that's definitely a good change !