Skip to content

Commit 488deaa

Browse files
authored
Add more CSS properties to list of unitless properties (#1426)
* Add more CSS properties to list of unitless properties - base-palette - font-size-adjust - -webkit-line-clamp
1 parent d4d1f98 commit 488deaa

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/silver-rabbits-repeat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@compiled/css': patch
3+
---
4+
5+
Add support for unitless values for base-palette, font-size-adjust, and -webkit-line-clamp properties

packages/css/src/utils/css-property.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const unitless = {
22
animationIterationCount: true,
3+
basePalette: true,
34
borderImageOutset: true,
45
borderImageSlice: true,
56
borderImageWidth: true,
@@ -14,6 +15,8 @@ const unitless = {
1415
flexShrink: true,
1516
flexNegative: true,
1617
flexOrder: true,
18+
fontSizeAdjust: true,
19+
fontWeight: true,
1720
gridArea: true,
1821
gridRow: true,
1922
gridRowEnd: true,
@@ -23,13 +26,13 @@ const unitless = {
2326
gridColumnEnd: true,
2427
gridColumnSpan: true,
2528
gridColumnStart: true,
26-
fontWeight: true,
2729
lineClamp: true,
2830
lineHeight: true,
2931
opacity: true,
3032
order: true,
3133
orphans: true,
3234
tabSize: true,
35+
WebkitLineClamp: true,
3336
widows: true,
3437
zIndex: true,
3538
zoom: true,

0 commit comments

Comments
 (0)