Skip to content

bug: when direction is RTL hamburger menu appears on right side but animation comes from the left #30226

Description

@vicatcu

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

On a fresh repository generated using this command:
ionic start photo-gallery sidemenu --type=angular --capacitor

All I do is put the attribute dir="rtl" on the <ion-app> element, and the behavior becomes this:

side-menu.mp4

Expected Behavior

The menu should animate in from the right when dir="rtl" for the app.

Steps to Reproduce

  1. ionic start photo-gallery sidemenu --type=angular --capacitor
  2. Open src/app/app.component.html
  3. Change <ion-app> to <ion-app dir="rtl">
  4. npm start
  5. Open web browser and click the hamburger icon in the upper right
  6. Observe the behavior in the video above.

Code Reproduction URL

https://github.com/vicatcu/photo-gallery

Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/home/vic/.nvm/versions/node/v18.20.2/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.4.3
@angular-devkit/build-angular : 19.2.0
@angular-devkit/schematics : 19.2.0
@angular/cli : 19.2.0
@ionic/angular-toolkit : 12.1.1

Utility:

cordova-res : 0.15.4
native-run : 2.0.1

System:

NodeJS : v18.20.2 (/home/vic/.nvm/versions/node/v18.20.2/bin/node)
npm : 10.5.0
OS : Linux 6.9

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions