Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: RTL drawer is messed up #2034

Closed
CripyIce opened this issue Jun 21, 2023 · 5 comments
Closed

bug: RTL drawer is messed up #2034

CripyIce opened this issue Jun 21, 2023 · 5 comments
Assignees

Comments

@CripyIce
Copy link

CripyIce commented Jun 21, 2023

What version of daisyUI are you using?

3.1.5

Describe your issue

After upgrading to 3.1.15, the drawer in RTL versions is always visible.
The drawer also comes from the left side while it should be coming from the right side.

What browsers are you seeing the problem on?

Chrome and Safari

Reproduction URL (optional)

https://play.tailwindcss.com/1Vj1TO1ezs

@saadeghi saadeghi self-assigned this Jun 21, 2023
@haghft
Copy link

haghft commented Jul 9, 2023

The problem is translateX(-100%)
This rule must be change from:

 [dir=rtl] .drawer-side>:not(.drawer-overlay){
      transform: translateX(-100%);
    }

to:

 [dir=rtl] .drawer-side>:not(.drawer-overlay){
      transform: translateX(100%);
    }

I suggest to remove ‍‍‍[dir=rtl] .drawer-side>:not(.drawer-overlay) css rule

@lbensaad
Copy link

lbensaad commented Jul 15, 2023

this seems to be the same as #1974, when it will be fixed?

@lbensaad
Copy link

Thanks @haghft that solves the problem with RTL Drawer but only for the one that appears on the right.
It does not work with drawer-end which appears on the left in RTL. How to fix that?

@saadeghi
Copy link
Owner

I'm working on it. Will be fixed soon

@ariaieboy
Copy link

@saadeghi, any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants