matcha icon indicating copy to clipboard operation
matcha copied to clipboard

Unnecessary svg for checkbox

Open stefanak-michal opened this issue 1 year ago • 1 comments

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

image

Would it be possible to remove this custom svg for checkbox?

stefanak-michal avatar Aug 15 '24 09:08 stefanak-michal

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 !

lowlighter avatar Dec 19 '24 03:12 lowlighter