icehaunter / vue3-datepicker

Simple datepicker component for Vue 3
https://icehaunter.github.io/vue3-datepicker/
MIT License
150 stars 153 forks source link

Inline style goes against best practices - violates CSP #52

Open cwaldbieser opened 3 years ago

cwaldbieser commented 3 years ago

See https://www.thoughtco.com/avoid-inline-styles-for-css-3466846

Noticed this when the style was blocked by my content security policy:

Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='), or a nonce ('nonce-...') is required to enable inline execution.

Zt @ vue3-datepicker.esm.js:165

I'm not entirely sure where this originates from.