Skip to content

fix: twind duplicating css classes when className is used instead of class#1658

Merged
marvinhagemeister merged 6 commits into
mainfrom
twind-duplicate-class
Aug 17, 2023
Merged

fix: twind duplicating css classes when className is used instead of class#1658
marvinhagemeister merged 6 commits into
mainfrom
twind-duplicate-class

Conversation

@marvinhagemeister

Copy link
Copy Markdown
Contributor

Both the twind and twindV1 plugin didn't properly handle the case when className is used to set classes instead of class. This would lead to CSS classes being applied twice.

Fixes #1655

@bartlomieju bartlomieju left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, no comments

@marvinhagemeister marvinhagemeister merged commit 6d57448 into main Aug 17, 2023
@marvinhagemeister marvinhagemeister deleted the twind-duplicate-class branch August 17, 2023 11:01
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.

Duplicate class in <html></html> when use className

2 participants