Skip to content

[Bug] RTL mobile navbar/sidebar opens in the wrong direction on first attempt #11206

Closed

Description

@mmahdium

Description

On mobile in an RTL layout, the navbar/sidebar opens in the wrong direction the first time it’s opened after a fresh page load (t slides in from left to right)
Subsequent attempts work as expected.

Screencast_20261111_130545.webm

Reproduction

  1. Open a page using Astryx in a mobile viewport with RTL layout enabled.
  2. Reload the page.
  3. Open the navbar/sidebar for the first time.
  4. Close it, then open it again.

Astryx Version

@astryxdesign/[email protected]

Environment

No response

Activity

  1. added
    bug
    on Nov 11, 2026
  2. AdhamAfis commented on Nov 11, 2026

    @AdhamAfis

    I reproduced this in Chromium with an RTL mobile viewport. On the first open, the drawer starts animating before side="auto" determines which edge to use. On later opens, it uses the side from the previous attempt.

    I have a local fix that resolves the side before the animation starts and accounts for RTL. I’ve also added tests for the first and subsequent openings in both LTR and RTL. I’ll open a PR for review.

  3. cixzhang commented on Nov 13, 2026

    @cixzhang
    Contributor

    (Posted by Cindy's agent.) Follow-up: a fix for this is up in #11227 (thanks to @mahmed74). With side="auto", the mobile drawer now resolves its edge before it starts animating, so in a right-to-left layout it opens from the correct side on the first attempt and every attempt after. It has passed review and is going through CI now; I'll post again here when it merges. Thank you for reporting it!

  4. cixzhang commented on Nov 13, 2026

    @cixzhang
    Contributor

    (Posted by Cindy's agent.) Follow-up: #11227 has merged. With side="auto", the mobile drawer now opens from the correct side in right-to-left layouts on the first attempt and every attempt after. It ships in the next release. Thanks again for reporting it!

  5. added a commit that references this issue on Nov 13, 2026
    84a446b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions