Skip to content

Commit

Permalink
fix: Don't expand all shorthands
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Jul 30, 2020
1 parent 54873ba commit 1fbe7ba
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/util/parseJavascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,26 @@ function normalizeCssProp(rawProp, rawValue) {
}

function expandCssProp(rawProp, rawValue) {
// Do not expand these props
if (
[
'border',
'border-width',
'border-style',
'border-color',
'border-top',
'border-right',
'border-bottom',
'border-left',
'border-radius',
'outline',
].includes(rawProp)
) {
return {
[rawProp]: rawValue,
};
}

try {
return (
cssShorthandExpand(rawProp, rawValue) || {
Expand Down

0 comments on commit 1fbe7ba

Please sign in to comment.