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

Where psudeo class removes selector #265

Open
paulm17 opened this issue Oct 8, 2024 · 1 comment
Open

Where psudeo class removes selector #265

paulm17 opened this issue Oct 8, 2024 · 1 comment
Assignees
Labels
customization: css Design CSS customizability status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Milestone

Comments

@paulm17
Copy link

paulm17 commented Oct 8, 2024

Summary

where pseudo class is removing the selector class.

const wrapper2Div = css(({ theme }) => ({ 
"& > p": {
    fontSize: "30px",
  }
}))

results in

.w1q6qxdt>p{font-size:30px;}

const wrapper2Div = css(({ theme }) => ({ 
"&>:where(p)": {
    fontSize: "30px",
  }
}))

results in

:where(p){font-size:30px;}

should be

.w1q6qxdt>:where(p){font-size:30px;}

This is the actual problem.

Search keywords: where pseudo class

@paulm17 paulm17 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 8, 2024
@zannager zannager added the customization: css Design CSS customizability label Oct 9, 2024
@paulm17 paulm17 changed the title Add selector id in css callback function Where psudeo class removes selector Oct 15, 2024
@brijeshb42 brijeshb42 assigned brijeshb42 and unassigned siriwatknp Oct 18, 2024
@brijeshb42 brijeshb42 added this to the Road to v1 milestone Oct 18, 2024
@brijeshb42
Copy link
Contributor

This seems to be an issue in the preprocessor layer. Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customization: css Design CSS customizability status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants