ktsn / vue-designer

Vue component design tool
https://marketplace.visualstudio.com/items?itemName=ktsn.vue-designer
MIT License
368 stars 22 forks source link

fix: unset renderer style rather than set to initial #64

Closed ktsn closed 6 years ago

ktsn commented 6 years ago

Renderer style is set to initial (all: initial;) to avoid affecting Vue Designer style for the user component. But initial leads unexpected behavior for some css properties such as font-family - the font-family is always serif even if the user set font-family: sans-serif; to <body> on their shared style.

To handle such situation, we should use unset css value instead of initial so that inherited properties (e.g. font-family) will be set to inherit.