Skip to content

Spacing with dashes does not fold #12

@kachkaev

Description

@kachkaev

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions