kidonng / unocss-preset-daisy

UnoCSS preset for daisyUI
https://unocss-preset-daisy.vercel.app
MIT License
220 stars 19 forks source link

Correct order of btn rules #30

Open csvn opened 9 months ago

csvn commented 9 months ago

Fixes a discrepancy between DaisyUI with TW.

Currently, .btn-xs and othere size rules comes later than .btn-circle/.btn-square. This makes e.g. .btn-square:where(.btn-xs) produce a different padding due to cascade.

To solve this and improve compatability with regular Daisy, this PR adds square/circle buttons to a layer that comes after components. The end result is that left/right padding is correctly set to 0 instead of 0.5rem.

Before

image

After

image