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

Wrong remove of the text-* classes #346

Closed
CzepiM200 opened this issue Nov 18, 2023 · 0 comments
Closed

Wrong remove of the text-* classes #346

CzepiM200 opened this issue Nov 18, 2023 · 0 comments
Labels
context-v2 Related to tailwind-merge v2

Comments

@CzepiM200
Copy link

Describe the bug

I was trying to add both text color and text size classes. twMerge always remove one of them.

Example:

twMerge("text-orange-100 text-l") => "text-orange-100"
twMerge("text-l text-orange-100") => "text-l"

To Reproduce

https://codesandbox.io/s/laughing-sammet-hmy3md?file=/src/index.ts

Expected behavior

I want to have both text color and text size classes included
twMerge("text-orange-100 text-l") => "text-orange-100 text-l"

Environment

  • tailwind-merge version: [1.14.0] and [2.0.0]

Additional context

My issue is similar to this one
#297

@dcastil dcastil added the context-v2 Related to tailwind-merge v2 label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
context-v2 Related to tailwind-merge v2
Projects
None yet
Development

No branches or pull requests

2 participants