forked from viodotcom/stylis-rtl
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
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, while thead
and td/th
do not.
const styles = {
width: 1,
textAlign: "left",
"& thead": {
textAlign: "left"
},
"& th, & td": {
paddingLeft: 1
}
};
function App() {
return (
<Box component="table" sx={styles}>
<thead>
<tr>
<th>Hello TH</th>
</tr>
</thead>
<tbody>
<tr>
<td>Hello TD</td>
</tr>
</tbody>
</Box>
);
}
Note: This was initially reported in mui/material-ui#24270 (comment)
oliviertassinari
Metadata
Metadata
Assignees
Labels
No labels