forked from viodotcom/stylis-rtl
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Current Behavior 😯
When I use rtlPlugin
from stylis-plugin-rtl
, I get type error:
Type '(element: Element, index: number, children: (string | Element)[], callback: Middleware) => string | void' is not assignable to type 'StylisPlugin'.
Expected Behavior 🤔
Not having this type (TypeScript) error.
To Reproduce 🕹
Live Example (codesandbox/eager-tereshkova-lx74s)
Context 🔦
I'm trying to use rtlPlugin in order to display mui components in rtl direction.
Environment information 🌎
Simple React/Next.js. Also check Live Example above for more detailed.
react
version: 17.0.2stylis
version: 4.0.10stylis-plugin-rtl
version: 2.1.0@emotion/react
version: 11.4.1@emotion/styled
version: 11.3.0
I have previously posted this issue at material-ui, but they reported that the bug is either within @emotion/cache
or stylis-plugin-rtl
(comment).
Also there's an exact issue opened at emotion-js/emotion in case the bug is there.
Hakeemmidan
Metadata
Metadata
Assignees
Labels
No labels