Skip to content

Conversation

@RobinMalfait
Copy link
Member

This PR is an improvement/fix by making sure that whitespace around the , separator is removed when printing arbitrary values.

Before:

- <div class="grid-cols-[min(50%,theme(spacing.80))_auto]"></div>
+ <div class="grid-cols-[min(50%,_var(--spacing-80))_auto]"></div>

After:

- <div class="grid-cols-[min(50%,theme(spacing.80))_auto]"></div>
+ <div class="grid-cols-[min(50%,var(--spacing-80))_auto]"></div>

E.g.: `m-[min(1px,_2px)]` -> `m-[min(1px,2px)]`
@RobinMalfait RobinMalfait requested a review from a team as a code owner October 30, 2024 21:26
…ar.test.ts

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
@RobinMalfait RobinMalfait merged commit 0b5736f into next Oct 31, 2024
1 check passed
@RobinMalfait RobinMalfait deleted the fix/improve-arbitrary-value-minifier branch October 31, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants