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

Add support for styled-components v6 #818

Merged
merged 1 commit into from Jul 25, 2023

Conversation

ben-rogerson
Copy link
Owner

@ben-rogerson ben-rogerson commented Jul 17, 2023

This PR adds support for styled-components v6 by setting the sassyPseudo option to true for the styled-components preset.
Prefixing selectors like hover with an ampersand (eg: &:hover) were made a requirement in the latest version.

Another change is that when using styled, all props will be added to the element and you'll likely see a console warning. This isn't handled by twin so we'll need to use transient props to get around that.

Related #805

@ben-rogerson ben-rogerson force-pushed the feature/styled-components-6-support branch from dc5c6c9 to 206c024 Compare July 25, 2023 08:14
@ben-rogerson ben-rogerson merged commit 0404da6 into master Jul 25, 2023
@ben-rogerson ben-rogerson deleted the feature/styled-components-6-support branch July 25, 2023 08:20
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

1 participant