generateForBothDir option value not reaching preprocessor.js #262
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
With examples/pigment-css-nextjs-ts
Add this to
withPigment
options:add this prop to
<Link>
components insrc/app/page.tsx
:Run the project and see the margin being added
In dev-tools add "dir=rtl" to the html tag and see the margin not becoming reversed.
I added a
console.log(generateForBothDir)
herenode_modules/@pigment-css/react/utils/index.js:54
(this is the line number of compiled file in node_modules, the place of this line in the code is here) and noticed it is false even though it is set totrue
in thenext.config.mjs
file. Reading the code I don't see it being passed topreprocessor
.Your environment
using pigment 0.0.24
I don't think my browser version is relevant here as I checked the generated code and it was wrong and probably doesn't work in any other browser too, but I'm using Safari 18.1.
Search keywords: rtl
The text was updated successfully, but these errors were encountered: