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

Logical border color properties does not work with generic border color #474

Closed
sherlockdoyle opened this issue Sep 29, 2024 · 1 comment · Fixed by #478
Closed

Logical border color properties does not work with generic border color #474

sherlockdoyle opened this issue Sep 29, 2024 · 1 comment · Fixed by #478
Labels
bug Something isn't working context-v2 Related to tailwind-merge v2

Comments

@sherlockdoyle
Copy link
Contributor

sherlockdoyle commented Sep 29, 2024

Describe the bug

Using logical border color properties with a more general property does not work (see below). The more specific property completely removes the generic property.

To Reproduce

https://codesandbox.io/p/sandbox/happy-field-y446v2

twMerge('border-blue border-r-red')  // "border-blue border-r-red" (correct)
twMerge('border-blue border-e-red')  // "border-e-red"
twMerge('border-blue border-s-red')  // "border-s-red"

Expected behavior

twMerge('border-blue border-e-red') should return "border-blue border-e-red" and so on.

Environment

  • tailwind-merge version: 2.5.2
@github-actions github-actions bot added the context-v2 Related to tailwind-merge v2 label Sep 29, 2024
@dcastil dcastil added the bug Something isn't working label Oct 3, 2024
Copy link

github-actions bot commented Oct 3, 2024

This was addressed in release v2.5.3.

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