Skip to content

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

Closed

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

Activity

  1. brandyscarney commented on Mar 3, 2025

    @brandyscarney
    Member

    Thanks for the issue! Is there a reason you can't set dir on the <html> element? We check for the document.dir in the code which is ltr if you set it on the <ion-app> element:

    const isRTL = document.dir === 'rtl';
  2. added
    needs: replythe issue needs a response from the user
    and removed on Mar 3, 2025
  3. vicatcu commented on Mar 3, 2025

    @vicatcu
    Author

    In my application (many applications?) it needs to be parametric/dynamically set based on a user preference setting and bindings aren't possible in index.html (as far as I know?).

  4. added and removed
    needs: replythe issue needs a response from the user
    on Mar 3, 2025
  5. added
    type: buga confirmed bug report
    and removed on Feb 28, 2026
  6. moved this from Backlog to In progress in Summer Internship - Madison College - 2026on Jun 9, 2026
  7. moved this from In progress to Ionic Review in Summer Internship - Madison College - 2026on Jun 14, 2026
  8. moved this from Ionic Review to In progress in Summer Internship - Madison College - 2026on Jun 26, 2026
  9. added a commit that references this issue on Aug 18, 2026
    2618a6f
  10. ionitron-bot commented on Sep 17, 2026

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  11. locked and limited conversation to collaborators on Sep 17, 2026
  12. added a commit that references this issue on Oct 3, 2026
    3b9f8f2
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions