when rtl is activated, ltr styles apply too #263
Labels
package: system
Specific to @mui/system
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
Kindly read this issue for the reproduction steps and as initial context of this issue.
Now I set
generateForBothDir
totrue
hereWhen I add
dir="rtl"
to the<html>
tag, the rtl version of styles apply, but at the same time the ltr version of styles apply too, because as far as I understand nothing is preventing them. Should we changepigment-css/packages/pigment-css-react/src/utils/preprocessor.ts
Line 59 in f1a32ff
to something like this:
and add to the docs that when using
generatedForBothDir
one should always set thedir
attribute of thehtml
tag.If it sounds rational to you, I can create a pull request.
Your environment
pigment 0.0.24
Safari 18.1
Search keywords: rtl
The text was updated successfully, but these errors were encountered: