Skip to content

The sidebar component does not support RTL #551

@aligjahed

Description

@aligjahed

Summary

Having direction: rtl; in the body breaks sidebar animation

Steps to Reproduce

  1. Copy "content push" side bar from preline ui docs
  2. Paste it in a html
  3. add dir="rtl" to the html or direction:rtl; to the body style

Demo Link

https://stackblitz.com/edit/vitejs-vite-umxbmzea?file=index.html

Expected Behavior

When adding direction: rtl; to the body or dir='rtl' to the html tag it's expected that the animation also follows the other parts of the side bar and become RTL.

Actual Behavior

Instead the animation breaks when opening the menu on mobile devices. it first snaps to the left and then gradually moves right

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions