@emotion/styled not respecting asterisk * #2750
Unanswered
mikematos84
asked this question in
Q&A
Replies: 2 comments
-
Please always try to share a repro case in a runnable form - either by providing a git repository to clone or a codesandbox. OSS maintainers usually can't afford the time to set up the repro, even if exact steps are given. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think you are missing an ampersand: & > * {
display: inline
} Also, the ability to nest blocks of CSS is not (yet) a feature of vanilla CSS. This is a feature of Emotion that was inspired by Sass. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an emotion-styled component that I am trying to force
display: inline
on any child element inside of it. Normally doing something like> * { display: inline }
works perfectly fine, but somehow does not seem to be working. My current code looks something like this:Previously, my styling was done in
styled-components
, which I have since converted over to using@emotion/styled
. However, this is pretty standard CSS syntax, so I am unsure why it isn't getting appropriately interpreted.Beta Was this translation helpful? Give feedback.
All reactions