yuanqing / create-figma-plugin

:battery: The comprehensive toolkit for developing plugins and widgets for Figma and FigJam
https://yuanqing.github.io/create-figma-plugin/
MIT License
948 stars 91 forks source link

Unnecessary css gets generated after build #228

Open ZSuraj opened 6 months ago

ZSuraj commented 6 months ago

I am using an input tag in my code <input type="text" className="p-2 border border-black" placeholder="text here ..." />

padding is working (means p-2 is overwriting the below padding:0;) but border is not applying. When i checked console, the below style border:0; was overwriting the border in the above code. The below code automatically generates and is found in build/ui.js file. Why does it generate automatically?

input, textarea { padding: 0; border: 0; margin: 0; -webkit-appearance: none; cursor: default; font: inherit; outline: 0; }