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

Styled components 6 support #397

Merged
merged 3 commits into from
May 24, 2024
Merged

Conversation

jcfilben
Copy link
Collaborator

@jcfilben jcfilben commented May 23, 2024

What does this PR do?

Adds & in front of pseudoselectors. In styled components 5 this was implicitly included if it wasn't already there but in styled components 6 this needs to be manually added.

https://styled-components.com/docs/faqs#nested-syntax-handling

What testing has been done on this PR?

Tested locally on DS site with this PR grommet/hpe-design-system#3880

Any background context you want to provide?

What are the relevant issues?

Screenshots (if appropriate)

before:
Screen Shot 2024-05-23 at 11 53 52 AM

after:
Screen Shot 2024-05-23 at 12 02 35 PM

before:
Screen Shot 2024-05-23 at 12 08 00 PM

after:
Screen Shot 2024-05-23 at 12 07 15 PM

Is this change backward compatible or could it be a breaking change for the official HPE theme?

backwards compatible

How should this PR be communicated in the release notes?

styled components v6 support

@jcfilben jcfilben requested review from taysea and britt6612 May 23, 2024 17:50
Copy link
Collaborator

@britt6612 britt6612 left a comment

Choose a reason for hiding this comment

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

Nice catch!

@taysea taysea merged commit bcd6b13 into grommet:master May 24, 2024
@jcfilben jcfilben deleted the styled-components-6 branch May 24, 2024 19:17
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.

3 participants