-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Fix sorting of classes that have undefined declarations #16995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15036,11 +15036,6 @@ test('text', async () => { | |
--leading-snug: 1.375; | ||
} | ||
|
||
.text-sm { | ||
font-size: var(--text-sm); | ||
line-height: var(--tw-leading, var(--text-sm--line-height)); | ||
} | ||
|
||
.text-\\[10px\\]\\/none { | ||
font-size: 10px; | ||
line-height: 1; | ||
|
@@ -15071,6 +15066,11 @@ test('text', async () => { | |
line-height: calc(var(--spacing) * 6); | ||
} | ||
|
||
.text-sm { | ||
font-size: var(--text-sm); | ||
line-height: var(--tw-leading, var(--text-sm--line-height)); | ||
} | ||
|
||
.text-sm\\/6 { | ||
font-size: var(--text-sm); | ||
line-height: calc(var(--spacing) * 6); | ||
|
@@ -16748,11 +16748,11 @@ describe('custom utilities', () => { | |
expect(optimizeCss(compiled).trim()).toMatchInlineSnapshot(` | ||
"@layer utilities { | ||
.text-sm { | ||
font-size: var(--text-sm, .875rem); | ||
line-height: var(--tw-leading, var(--text-sm--line-height, 1.25rem)); | ||
font-size: var(--text-sm, .8755rem); | ||
line-height: var(--text-sm--line-height, 1.255rem); | ||
text-rendering: optimizeLegibility; | ||
font-size: var(--text-sm, .875rem); | ||
line-height: var(--tw-leading, var(--text-sm--line-height, 1.25rem)); | ||
Comment on lines
16751
to
+16755
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This diff is weird but that's because of lightning flatting. What happens ehre is the custom new |
||
} | ||
}" | ||
`) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now uses alphabetical sorting becuase it has the same number of props as the arbitrary text classes