question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[docs] RTL docs is not up-to-date

See original GitHub issue

component overrides, makeStyles & components with sx prop not working properly in RTL.

The issue is in RTL mode marginRight not converted to marginLeft.

Please refer to the following codesandbox and let me know if I am doing something wrong: https://codesandbox.io/s/currying-forest-erxxy?file=/src/App.js

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
ghostcommented, Jun 28, 2021

when configuring RTL using typescript as in the docs, specifically in step 3.2:

const cacheRtl = createCache({
  key: 'muirtl',
  stylisPlugins: [rtlPlugin],
});

typescript complains about rtlPlugin with this error: Type ‘(element: unknown, index: unknown, children: unknown, callback: unknown) => string | void’ is not assignable to type ‘StylisPlugin’. Type ‘string | void’ is not assignable to type ‘string | undefined’. Type ‘void’ is not assignable to type ‘string | undefined’

1reaction
panbehkarcommented, Sep 21, 2021

when configuring RTL using typescript as in the docs, specifically in step 3.2:

const cacheRtl = createCache({
  key: 'muirtl',
  stylisPlugins: [rtlPlugin],
});

typescript complains about rtlPlugin with this error: Type ‘(element: unknown, index: unknown, children: unknown, callback: unknown) => string | void’ is not assignable to type ‘StylisPlugin’. Type ‘string | void’ is not assignable to type ‘string | undefined’. Type ‘void’ is not assignable to type ‘string | undefined’

I have the same issue. issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docs comments in RTL language (Hebrew) get cut off
Docs comments in RTL language (Hebrew) get cut off. I'm adding comments and edit suggestions to an existing document in Hebrew.
Read more >
[docs] RTL support · Issue #1926 · mui/material-ui - GitHub
I just tested RTL support locally on the docs site and it's working fine. You have to override isRtl to true AND set...
Read more >
Appearance and Disappearance - Testing Library
Appearance and Disappearance. Sometimes you need to test that an element is present and then disappears or vice versa.
Read more >
RTL And LTR Support | Smartface Docs
RTL And LTR Support | Smartface Docs. This is unreleased documentation for Smartface Docs Next version. For up-to-date documentation, see the latest version...
Read more >
TextView - Android Developers
Whether or not the auto handwriting initiation is enabled in this View. ... Called when any RTL property (layout direction or text direction...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found