-
I have the following Svelte button component. (You can see whole code here.)
When I use this component to overwrite color, I need to use
Output:
I'd like to know what could be the limitations or in which conditions |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @shinokada! 👋 Just tried to reproduce your use case in https://codesandbox.io/s/tailwind-merge-playground-cssr35?file=/src/index.ts with this code which should match yours: const mergeData: MergeData[] = [
{
args: [
'text-center font-medium',
'focus:ring-4',
'focus:outline-none',
'inline-flex items-center justify-center',
'px-5 py-2.5 text-sm',
'text-white bg-primary-700 hover:bg-primary-800 dark:bg-primary-600 dark:hover:bg-primary-700',
'focus:ring-primary-300 dark:focus:ring-primary-800',
'rounded-lg',
'bg-blue-500'
],
},
] The result is the following where the
![]() Are you sure that the issue isn't somewhere else? If so, could you create a reproducible example in https://codesandbox.io/s/tailwind-merge-playground-cssr35?file=/src/index.ts and paste the code here? |
Beta Was this translation helpful? Give feedback.
-
Thank you for replying to the issue. I appreciate your work and time. I close the issue for now. |
Beta Was this translation helpful? Give feedback.
Thank you for replying to the issue.
I tested it at Stackblitz and it seems working.
I appreciate your work and time.
I close the issue for now.
Thank you.