Skip to content

Fix comma spacing in Tailwind arbitrary values - #2560

Open
BCHAYMAE wants to merge 2 commits into
beautifier:mainfrom
BCHAYMAE:fix/tailwind-apply-comma
Open

BCHAYMAE wants to merge 2 commits into
beautifier:mainfrom
BCHAYMAE:fix/tailwind-apply-comma

Conversation

@BCHAYMAE

Copy link
Copy Markdown

Description

Fixes incorrect comma spacing inside square-bracketed Tailwind arbitrary values when formatting CSS.

Changes

  • Track square-bracket nesting in the CSS beautifier.
  • Prevent comma formatting from inserting unwanted spaces or newlines inside bracketed values.
  • Apply the fix to both JavaScript and Python implementations.
  • Add a regression test for Tailwind @apply syntax.

Testing

  • make js passed.
  • make py passed.

Related issue

Closes #2554

This branch has not been deployed

No deployments
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.

CSS: space added after comma inside a Tailwind @apply arbitrary value breaks the class

1 participant