Skip to content

text-balance incompatibility  #321

@jamestrenda

Description

@jamestrenda

Describe the bug

Using text-balance from the Tailwind Insiders package with a text color utility class, such as text-white, results in only the last class being kept. If I do text-balance text-white, only text-white is kept. If I do text-white text-balance, only text-balance is kept. Unfortunately, these two classes do two different things and should, therefore, not conflict when merging.

To Reproduce

npm install tailwindcss@insiders and then try using twMerge('text-white text-balance')

Expected behavior

The two classes should not conflict with each other so that they're both added to the final output of twMerge

Environment

  • tailwind-merge version: 1.14.0
  • tailwind version: 0.0.0-insiders.614c7e2

Metadata

Metadata

Assignees

No one assigned

    Labels

    context-v1Related to tailwind-merge v1

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions