We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
emotion
I wanted to apply a style to all elements of class foo that are inside bar:
foo
bar
import { css } from 'emotion'; const foo = css` color: blue; `; const bar = css` & .${foo} { color: red; } `;
but instead this was all of the output styles:
.css-bithoy{color:blue;}
as if I wrote this:
const foo = css` color: blue; `; const bar = css` ${foo}; `;
However, if I add a declaration for bar:
const bar = css` color: black; & .${foo} { color: red; } `;
it works as expected:
.css-bithoy{color:blue;} .css-6fp6m3{color:black;} .css-6fp6m3 .css-bithoy{color:red;}
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
emotion
version: 7.0.13I wanted to apply a style to all elements of class
foo
that are insidebar
:but instead this was all of the output styles:
as if I wrote this:
However, if I add a declaration for
bar
:it works as expected:
The text was updated successfully, but these errors were encountered: