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

Appending classnames #3969

Closed
wants to merge 2 commits into from
Closed

Appending classnames #3969

wants to merge 2 commits into from

Conversation

Jittoqb
Copy link

@Jittoqb Jittoqb commented Mar 14, 2023

When using tailwind to generate pre-defined components with some classes, there is this unexpected behavior where instance className is prepended instead of appended. This prevents from overriding the css. This solves #3912 . Fixed by changing the order of concat and some tests.

@Jittoqb Jittoqb closed this Mar 14, 2023
@Jittoqb Jittoqb reopened this Mar 14, 2023
Copy link

@radenkovic radenkovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me 👁️ 👁️

@quantizor
Copy link
Contributor

Can't do it this way because it violates attrs application order: https://styled-components.com/docs/basics#overriding-attrs

@quantizor
Copy link
Contributor

I have an alternate fix that I think will take care of your use case

@quantizor quantizor closed this Mar 23, 2023
@Jittojoyes98
Copy link

I have an alternate fix that I think will take care of your use case

Fine

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

Successfully merging this pull request may close these issues.

None yet

5 participants