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

:focus-within doesn't work without :global #116

Open
kizu opened this issue May 13, 2020 · 0 comments
Open

:focus-within doesn't work without :global #116

kizu opened this issue May 13, 2020 · 0 comments

Comments

@kizu
Copy link

kizu commented May 13, 2020

Sandbox: https://codesandbox.io/s/reshadow-cra-hcqjm?file=/src/index.js:359-427

Basically, having &:focus-within doesn't work and produces this kind of selector:

.__section_131irbl:focus-.__within_131irbl {}

While wrapping the :focus-within with :global&:global(:focus-within) produces a proper selector:

.__section_yw67i7:focus-within {}
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

No branches or pull requests

1 participant