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 merge of stroke classes #370

Closed
alesji opened this issue Jan 21, 2024 · 3 comments · Fixed by #371
Closed

Wrong merge of stroke classes #370

alesji opened this issue Jan 21, 2024 · 3 comments · Fixed by #371
Labels
bug Something isn't working context-v2 Related to tailwind-merge v2

Comments

@alesji
Copy link

alesji commented Jan 21, 2024

Describe the bug

When using arbitrary values for stroke width and color, it doesnt work properly
"stroke-[hsl(350_80%_0%)]","stroke-[10px]" will result in only stroke-[10px] to be left behind, but thats not correct, both should be kept, since tailwind differentiates between using size unit and color unit by creating stroke-width: for size unit and stroke: for color, tailwind merge incorrectly takes it as colliding classes

Expected behavior

keep both color and size arbitrary value classes

@dcastil dcastil added bug Something isn't working context-v2 Related to tailwind-merge v2 labels Jan 22, 2024
@dcastil
Copy link
Owner

dcastil commented Jan 22, 2024

Hey @alesji! I could reproduce it and will fix this in the coming days.

Copy link

This was addressed in release v2.2.1.

@alesji
Copy link
Author

alesji commented Jan 22, 2024

Hey @alesji! I could reproduce it and will fix this in the coming days.

Awesome, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working context-v2 Related to tailwind-merge v2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants