-
Notifications
You must be signed in to change notification settings - Fork 244
Open
Description
Currently, parcel-css will covert css properties to shorthand notation when it is safe to do so:
.should-collapse {
border-left-style: none;
border-left-width: 0;
border-left-color: #333;
border-top-style: none;
border-top-width: 0;
border-top-color: #333;
border-right-style: none;
border-right-width: 0;
border-right-color: #333;
border-bottom-style: none;
border-bottom-width: 0;
border-bottom-color: #333;
}becomes
.should-collapse {
border: none;
}But when the above is changed to use css variables:
.should-collapse {
border-left-style: none;
border-left-width: 0;
border-left-color: var(--theme-colors-gray-200);
border-top-style: none;
border-top-width: 0;
border-top-color: var(--theme-colors-gray-200);
border-right-style: none;
border-right-width: 0;
border-right-color: var(--theme-colors-gray-200);
border-bottom-style: none;
border-bottom-width: 0;
border-bottom-color: var(--theme-colors-gray-200);
}The conversion to shorthand does not happen (but I think it should).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels