Skip to content

Ensure spacing utilities with no value (e.g. px) don't generate CSS#14911

Merged
adamwathan merged 3 commits into
nextfrom
fix/remove-default-spacing-utilities
Nov 8, 2024
Merged

Ensure spacing utilities with no value (e.g. px) don't generate CSS#14911
adamwathan merged 3 commits into
nextfrom
fix/remove-default-spacing-utilities

Conversation

@adamwathan

Copy link
Copy Markdown
Member

This PR fixes an issue where utilities like px would read the --spacing variable and use its value as the utility value, similar to how shadow reads --shadow by default. That doesn't make sense for these utilities since --spacing is reserved as a special multiplier variable.

@adamwathan adamwathan requested a review from a team as a code owner November 7, 2024 21:29
Comment thread packages/tailwindcss/src/utilities.test.ts Outdated
@adamwathan adamwathan merged commit 54ddbb1 into next Nov 8, 2024
@adamwathan adamwathan deleted the fix/remove-default-spacing-utilities branch November 8, 2024 14:49
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