Skip to content

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

Closed
@sherlockdoyle

Description

@sherlockdoyle

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcontext-v2Related to tailwind-merge v2

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions