Skip to content
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

Spacing with dashes does not fold #12

Open
kachkaev opened this issue Dec 7, 2023 · 0 comments
Open

Spacing with dashes does not fold #12

kachkaev opened this issue Dec 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kachkaev
Copy link

kachkaev commented Dec 7, 2023

I’ll elaborate a bit more on the issue soon. Just want to get an issue id first to mention it in the codebase

Current Behavior

If Tailwind config contains custom spacing with dashes, classes like marging, padding. etc. don’t fold. Example:

 "spacing": {
   "spacinga": "var(--spacing-a)",
   "spacing-b": "var(--spacing-b)",
 }

Input:

margin: var(--spacing-a);
padding: var(--spacing-b);

Ouput:

m-spacinga pt-spacing-b pr-spacing-b pb-spacing-b pl-spacing-b

Expected Behavior

m-spacinga p-spacing-b

Steps to Reproduce the Problem

Environment

  • Version:
  • Platform:
  • Node.js Version:
@kachkaev kachkaev added the bug Something isn't working label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant