You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<buttontype="button"
class="inline-flex items-center justify-center rounded-md border border-gray-300 bg-white text-gray-700 shadow-sm transition duration-150 ease-in-out hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 disabled:opacity-25 p-2 p-2">
Edit User
</button>
As you see, it adds the class `p-2` given in the `<SecondaryButtonclass="p-2">` twice. Not sure why it keeps doing this for me.
Environment
tailwind-merge version: 2.2.0
The text was updated successfully, but these errors were encountered:
This is a Vue feature that is a bit implicit and is not related to tailwind-merge. From the Vue docs:
When you use the class attribute on a component with a single root element, those classes will be added to the component's root element and merged with any existing class already on it.
For example, if we have a component named MyComponent with the following template:
Describe the bug
It seems that somehow my classes get added multiple times to my component.
To Reproduce
Have a component, e.g:
SecondaryButton.vue
Use the component:
Expected behavior
I obviously expect that the component renders with the following class list:
But it outputs the following:
Environment
The text was updated successfully, but these errors were encountered: