[material-ui][Chip] Fix adornments misaligned `RTL`
- [x] I have followed (at least) the PR section of the contributing guide.
Closes: 45193
Local Demo
- Used
createThemeto create thertldirection to test it locally - The changes will not change existing (ltr) implementation
@DiegoAndai this is for https://github.com/mui/material-ui/issues/45193
Netlify deploy preview
https://deploy-preview-45330--material-ui.netlify.app/
@material-ui/core: parsed: +0.07% , gzip: +0.02% Autocomplete: parsed: +0.25% , gzip: +0.06% Chip: parsed: +0.40% , gzip: +0.08%
Bundle size report
Details of bundle changes (Toolpad) Details of bundle changes
Generated by :no_entry_sign: dangerJS against 2903c113310020dceb3c3e935da81e0927ca052e
@DiegoAndai
-
How did you implement RTL? Which option did you use—
createThemeor including it inindex.html? I'm asking because the component expects the direction to come from the theme. If you've applied RTL differently, we can account for those cases as well. -
I'll take care of that.
Hey @solomonalem!
- The link I shared uses the docs' RTL implementation, which is defined here. It set's the direction on
createTheme(reference) as well as thebody's dir (reference)
You can test this locally by running pnpm docs:dev and visiting localhost:3000