Skip to content

logical css properties seems not to resolve when conflicting with normal css properties #388

@lord007tn

Description

@lord007tn

Describe the bug

When having a logical property like ps-2 and we add to it pl-4 they don't resolve and the two values are printed
as mentioned down in the pull request of shadcn-vue

To Reproduce

unovue/shadcn-vue#379 (comment)

Expected behavior

twMerge('pl-4', 'ps-6') ---> pl-4 ps-6 (directional + logical) the expected result should be ps-6 only as it come later
twMerge('pl-4', 'pl-6') ---> pl-6 (directional + directional)
twMerge('ps-4', 'ps-6') ---> ps-6 (logical+ logical)

Metadata

Metadata

Assignees

No one assigned

    Labels

    context-v2Related to tailwind-merge v2

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions