cssinjs / jss

JSS is an authoring tool for CSS which uses JavaScript as a host language.
https://cssinjs.org
MIT License
7.06k stars 397 forks source link

border-width array syntax is incorrect #709

Closed helios1138 closed 6 years ago

helios1138 commented 6 years ago
borderWidth: [1, 0, 1, 1]

results in

border-width: 1px,0,1px,1px;

instead of

border-width: 1px 0 1px 1px;
kof commented 6 years ago

yeah, core JSS syntax for this would be [[1, 0, 1, 1]], jss-expand doesn't know about this one. Wanna send an enhancement PR ? https://github.com/cssinjs/jss-expand/blob/master/src/props.js#L14

helios1138 commented 6 years ago

@kof https://github.com/cssinjs/jss-expand/pull/29

kof commented 6 years ago

published