Skip to content

Support of tailwind 3.1.8 #152

Closed Answered by dcastil
KevinHoppeLS asked this question in Help
Oct 13, 2022 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

You're using Vue, right? I think the problem here isn't tailwind-merge but Vue. You can test this by writing this code somewhere:

console.log(
    twMerge(
        'text-white inline-block bg-white p-1 border-2 border-white rounded-full fill-current border-current',
        'p-2 ml-2 shadow gradient-red-promo border-none h-8 w-8',
    ),
)

The result should be text-white inline-block bg-white border-2 rounded-full fill-current border-current p-2 ml-2 shadow gradient-red-promo border-none h-8 w-8 → there are no duplicated classes.

The reason why those classes still show up duplicated in the class attribute is because Vue takes the class prop on CircleIconWrapper and appends it to the root …

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@dcastil
Comment options

@KevinHoppeLS
Comment options

@KevinHoppeLS
Comment options

@dcastil
Comment options

Answer selected by dcastil
@KevinHoppeLS
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
context-v1 Related to tailwind-merge v1
2 participants