emilkowalski / sonner

An opinionated toast component for React.

Home Page:https://sonner.emilkowal.ski

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RTL Direction shows incorrect Position

yasseralsaidi opened this issue · comments

I am facing an issue with the direction (RTL).
when I set the layout to dir='ltr,' the position appears normal.
However, when I set dir='rtl,' the position is incorrect.

update: i found the problem with data-x-position and for temporarily soultion i change the postion to "bottom-center" but i want a default value whcih is bottom-right for larg device and bottom-center for small device
any fix?

See the attachemnt pic below...

ltr
screenshot-localhost_3000-2023 12 13-16_32_4102

rtl
screenshot-localhost_3000-2023 12 13-16_30_5201

rtl = right to left, so I think it's working correctly in the second image?