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

feat: support styled-components v6 enableVendorPrefixes #38457

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

psykzz
Copy link

@psykzz psykzz commented Aug 16, 2023

Description

Adds the new enableVendorPrefix
Keeps the original disable prefix, to keep backwards compatibility.

Documentation

https://styled-components.com/docs/api#stylesheetmanager

Tests

Related Issues

Adding both props, the original and new, to ensure backwards compatibility.
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 16, 2023
.default(false)
.default(true)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we want to change default? Just ensure the new prop is used (with inverse of old one value)?

Copy link
Author

Choose a reason for hiding this comment

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

For me, the idea was to match the default of styled-components.
If you want to keep it false happy to change it back.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think flipping default probably make sense (if that's how default changed in styled-components), but we would have to do so in major version bump, and not regular patch or minor bump as this is "breaking change"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer
2 participants