Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Components remove duplicate values, break gradient #89

Open
roadhump opened this issue Mar 29, 2023 · 1 comment
Open

Components remove duplicate values, break gradient #89

roadhump opened this issue Mar 29, 2023 · 1 comment

Comments

@roadhump
Copy link

Looks like components created with this lib remove "duplicate" attributes and it particularly breaks gradient background where we have several from-, via- values.

const Background = tw.div`
    bg-gradient-to-r  from-indigo-500 from-10%  via-purple-500 via-20$  to-pink-500 to-90%
`

<Background />

# Result

<div class="bg-gradient-to-r from-10% via-20$ to-90%"></div>

comparing to simple components

export const Background = () => (
    <div className="bg-gradient-to-r  from-indigo-500 from-10%  via-purple-500 via-20$  to-pink-500 to-90%" />
)

# Result
<div class="bg-gradient-to-r  from-indigo-500 from-10%  via-purple-500 via-20$  to-pink-500 to-90%"></div>
@jahirfiquitiva
Copy link

this might be an issue with tailwind-merge which is what this lib uses to remove duplicated classes 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants