viclafouch / mui-color-input

📌 A color input designed for MUI (Material ui) V6 built with TinyColor
https://viclafouch.github.io/mui-color-input/
60 stars 20 forks source link

color space has wrong values in rtl #4

Closed ElegantSoft closed 1 year ago

ElegantSoft commented 1 year ago

Describe the bug I am using color input in rtl website and the color space has reversed values on X axis

image

ElegantSoft commented 1 year ago

image

viclafouch commented 1 year ago

Hey !

Do you have a codesandbox repro link plz ?

yonatan0 commented 1 year ago

Hey @viclafouch,

First of all thanks you..

I think the cause for this issue is stylis-plugin-rtl , by "auto" fliping directions Using the example from mui5 docs regards ltr & rtl I wrote the following demostration https://codesandbox.io/s/jolly-feynman-yogmx1?file=/src/index.tsx altough something went wrong with the rendering inside codesandbox, the problem being talked here can be seen

viclafouch commented 1 year ago

Yep, I've just found the same issue..

See https://github.com/styled-components/stylis-plugin-rtl/issues/36 But I don't have any solution for you sorry :/

ElegantSoft commented 1 year ago

Thanks for reply I could fix it on my project by patching the package