hellof2e / quark-design

Browser-native component library, framework-agnostic, base on web components.(移动端 UI 组件库,无框架,即插即用。)
https://quark-ecosystem.github.io/quarkd-docs
MIT License
1.9k stars 189 forks source link

fix: square shape invalid #272

Closed szqingt closed 1 year ago

szqingt commented 1 year ago

sziesharp="square" 同时使用的时候border-radius 被覆盖了,导致 square 失效!

sanqi-med commented 1 year ago

sziesharp="square" 同时使用的时候border-radius 被覆盖了,导致 square 失效!

我看代码没有实质的更改哈

szqingt commented 1 year ago

代码是没有变动位置更换了,因为用的选择器权重一样,但是size的样式在square之后,且size中也有设置border-radius就导致squareborder-radius: 0;没有生效了!

szqingt commented 1 year ago

或许使用important更好