Skip to content
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

fix: use the correct serializer based on the direction value #350

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

brijeshb42
Copy link
Contributor

Curently, the assumption was that the rtl css would only be needed as an addon.
Fixed this to always use an explicit direction serializer based on the direction.
Also, the Vite plugin was not passing on the direction information to pre-processor. This has been fixed.

Fixes mui/material-ui#44647

Tested on user's repo with a local build of Pigment.

Screenshot 2024-12-17 at 5 32 20 PM

Curently, the assumption was that the rtl css would only be needed as an
addon.
Fixed this to always use an explicit direction serializer based on the
direction.
Also, the Vite plugin was not passing on the direction information to
pre-processor. This has been fixed.

Fixes mui/material-ui#44647
@brijeshb42 brijeshb42 added the bug 🐛 Something doesn't work label Dec 17, 2024
@brijeshb42 brijeshb42 self-assigned this Dec 17, 2024
@brijeshb42 brijeshb42 enabled auto-merge (squash) December 17, 2024 13:25
Copy link
Member

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic & tests looks good 👌

@brijeshb42 brijeshb42 merged commit dcd6f12 into mui:master Dec 19, 2024
13 checks passed
@brijeshb42 brijeshb42 deleted the fix/rtl branch December 19, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

RTL styles incorrect using Material UI and PigmentCSS
2 participants