-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Nested selectors not processed #22
Comments
@goffioul Could you provide a reproduction that doesn't involve MUI? |
This is just a wild guess, but I've done some debugging in the above sandbox. What appears to be happening, is that when function
Indeed, even though the element is of type RULESET, it has a non-null parent, which is not of type MEDIA (it's also of type RULESET). Hence CSSJanus transformation is not applied. |
This bug impacts the Grid component too. It can be seen on http://next.material-ui.com/components/grid/#basic-grid. It was first reported in emotion-js/emotion#2156. |
The bug was fixed by #21 @probablyup it can probably be closed. |
In a simple MaterialUI v5 demo app (https://codesandbox.io/s/material-rtl-nested-selector-1qtmo), it seems that nested selectors are not processed by the plugin. Using something like the following snippet, the
table
element gets flipped CSS, whilethead
andtd/th
do not.Note: This was initially reported in mui/material-ui#24270 (comment)
The text was updated successfully, but these errors were encountered: