Skip to content

fix(styled-jsx): Fix specificity #462

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

Closed
wants to merge 4 commits into from
Closed

fix(styled-jsx): Fix specificity #462

wants to merge 4 commits into from

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented May 22, 2025

No description provided.

@kdy1 kdy1 self-assigned this May 22, 2025
Copy link

changeset-bot bot commented May 22, 2025

⚠️ No Changeset found

Latest commit: d458320

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

import _JSXStyle from "styled-jsx/style";
export default function Home() {
return <>
<_JSXStyle id={"86b7ac1a67e57b1"}>{"div.jsx-86b7ac1a67e57b1.parent{color:green}"}</_JSXStyle>
Copy link
Member Author

Choose a reason for hiding this comment

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

babel: div.parent.jsx-53472265

@@ -35,6 +35,6 @@ export default function Component() {
duration,
easing,
delay
]}>{`@keyframes customAnimation{0%{opacity:0;transform:scale(0)}50%{opacity:${middleOpacity};transform:rotate(${rotation}deg)}to{opacity:1;transform:scale(1)}}.wrapper.__jsx-style-dynamic-selector .animated.__jsx-style-dynamic-selector{animation:customAnimation ${duration}ms ${easing} forwards;animation-delay:${delay}ms}`}</_JSXStyle>
]}>{`@keyframes customAnimation{0%{opacity:0;transform:scale(0)}50%{opacity:${middleOpacity};transform:rotate(${rotation}deg)}to{opacity:1;transform:scale(1)}}.wrapper.__jsx-style-dynamic-selector .animated{animation:customAnimation ${duration}ms ${easing} forwards;animation-delay:${delay}ms}`}</_JSXStyle>
Copy link
Member Author

@kdy1 kdy1 May 22, 2025

Choose a reason for hiding this comment

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

babel: .wrapper.__jsx-style-dynamic-selector .animated.__jsx-style-dynamic-selector

Copy link
Member Author

Choose a reason for hiding this comment

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

So this is wrong

@kdy1 kdy1 force-pushed the kdy1/styled-jsx branch from d458320 to a48b810 Compare May 22, 2025 21:46
@kdy1 kdy1 closed this May 27, 2025
@kdy1 kdy1 deleted the kdy1/styled-jsx branch May 27, 2025 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant