Skip to content

[RFC] RTL support for Ionic #11211

Closed
Closed

Description

@mhartington

This issue is to track support for RTL across the framework.

It is a combination of many issues that have existed for some time.

These other issues were difficult to follow as the conversation got derailed.
Here is the branch for testing https://github.com/driftyco/ionic/tree/right-to-left

@theunreal, @John-Luke, and @AmitMY , you have submitted PRs and issues for RTL, we'd like to ask for your help in going over each component for helping us get things in order. Feeling up for it?

Activity

  1. added
    help wanted
    on Apr 13, 2017
  2. theunreal commented on Apr 13, 2017

    @theunreal

    Sure, I'll do my best, I'm already running production RTL Ionic 2 app and I can track most of the issues

  3. AmitMY commented on Apr 13, 2017

    @AmitMY
    Contributor

    Same here, glad to help.

  4. jlucfarias commented on Apr 14, 2017

    @jlucfarias

    I'll do what I can for this

  5. refaelgold commented on Apr 15, 2017

    @refaelgold

    In Israel , We cant use this awesome framework because is not fully support to RTL.

    Thats the main reason we most of the time developing apps on Native(Swift & Java).

    I hope all this bugs will be fixed ASAP.

  6. AmitMY commented on Apr 15, 2017

    @AmitMY
    Contributor

    @refaelgold I am a dev from Israel as well.
    The only current blockers for rtl, are side menu support (support for changing side in run time), and arrows flipping - #11218
    When those are done, it will be possible to have rtl apps in production, because all of the other rtl issues are minor, and probably solvable with just css.

  7. alaa-alshamy commented on Apr 15, 2017

    @alaa-alshamy

    @mhartington
    also the page transition in ios should be reverse with RTL

    and also to be fully support with RTL any thing left should be right and any thing right should be left

    i mean for example there's padding-left in ion-item, with RTL should be padding-right , etc.

    so every thing should reverse padding , margin, even icon-left or icon-right , menu right or menu left

    so every thing with RTL should understand reverse i think, so when i set something left i should expect it will be right with RTL, unless i really need it to be on the left in all cases so should be something like force-left or some thing like this.

    with that we can do one code work awesome with the two directions.

    it's all just an ideas , what do u think guys ?

  8. AmitMY commented on Apr 15, 2017

    @AmitMY
    Contributor

    @alaa-alshamy That is exactly what this thread is about..
    About X-left -> The plan is to have X-start in addition, and X-left will always be left. (same for right)
    You are welcomed to help on this, if you know where things are wrong. Just create PRs with the correct behavior and the team will review.

  9. jlucfarias commented on Apr 15, 2017

    @jlucfarias

    @refaelgold if you know about any issue of RTL support in ionic you can get it and open a PR to solve it.
    If everybody create a PR to solve RTL issues, the ionic will fully support RTL in some days

  10. alaa-alshamy commented on Apr 16, 2017

    @alaa-alshamy

    @AmitMY that's very good

    but Unfortunately i don't have enough time to make PRs but i can reference some issues with RTL so if u can make PRs to solve them that's will be great.

    the issues i can confirm :
    1- side menu
    2- page transition in ios
    3- toggle buttons
    4- ion-searchbar
    5- all padding and margins eg: ion-item padding left should be right.
    for this point i mean reverse all padding and margins there's framework i used before to reverse padding and margins and right and left css properties in scss with same code it's name "bi-app", u can take some ideas from it

    simply it uses mixins in scss so you should replace every padding or margin or left or right with their appropriate mixin and it will automatic reverse it if you in RTL mode

    bi-app repo: https://github.com/anasnakawa/bi-app-sass

  11. sefidary commented on Apr 16, 2017

    @sefidary

    temporary add this file to app folder to fix all style problem in rtl project (support v3 grid system)
    _rtl.zip
    node_modules\ionic-angular\transitions

    transition-ios.zip

    node_modules\ionic-angular\components\toggle
    toggle.zip

    to fix toggle and ios transaction

  12. AmitMY commented on Apr 19, 2017

    @AmitMY
    Contributor

    This repo has some of the RTL problems, and proposed fixes:
    https://github.com/AmitMY/ionic-rtl
    So hopefully the team (who are ltr people, and rtl is not something they know) will see some issues a bit more visually and see the problems.

    Currently it only has problems with open PRs fixing them.

  13. 13 remaining items

  14. sijav commented on Jun 13, 2017

    @sijav
    Contributor

    I went through the whole UI Components test, the only RTL problems that I could see were:

    1. Range slider problem (fixes with this PR feat(range): rtl support #12004)
    2. Item icons (fixes with this PR fix(select): RTL fix for select #11352 though we have to use a border mixin that's why this PR is waiting)
    3. DateTime picker problem which invert the places of time or dates.
    4. this one fix(referesher): fix a bug with browser #11865
  15. AmitMY commented on Jun 13, 2017

    @AmitMY
    Contributor
    1. iOS animated searchbar moves the entire view
    2. Menu sides full support in run time (and support for menuToggle=start/end feat(rtl): menu update side in runtime #11336 (the most needed fix there is at the moment)
    3. Slides suck fix(slides): support reverse on rtl and ltr #12026

    @sijav About DateTime, this is a step in the right direction but not full support - #11992

  16. AmitMY commented on Jun 15, 2017

    @AmitMY
    Contributor

    Everyone on this thread, please try out v3.4.0
    Here is a post describing the changes: http://blog.ionic.io/ionic-and-rtl/

    Please comment here if there are any more issues other than described in the 2 comments above

  17. alaa-alshamy commented on Jun 17, 2017

    @alaa-alshamy

    @AmitMY first of all nice job and thanks for ur awesome PRs

    but i have some issues:
    1- labels flushing (disappear a while and back again) in the android with RTL when u focus the input or click on it
    2- border need to be reverse in RTL i mean border right and left

  18. AmitMY commented on Jun 17, 2017

    @AmitMY
    Contributor

    1 - Khalid fixed labels flashing in 3.4.0. Can you set to 3.4.2, and set "$app-direction: multi" in your scss? If you still have the problem, it would be awesome if you could create a new issue with a video showing what happens
    2 - borders are fixed in a PR. It will be reviewed on Monday, I can definitely see it going in for next minor (3.5.0)

  19. alaa-alshamy commented on Jun 18, 2017

    @alaa-alshamy

    @AmitMY actually i already on 3.4.2 and i configured the "$app-direction" so yea it still appear

    and i noticed the labels flashing in his videos in android before and after the fix, and he fixed the ios issues only as he mentioned there in this PR #11817

  20. AmitMY commented on Jun 18, 2017

    @AmitMY
    Contributor

    @alaa-alshamy Oh ok, added to the list

  21. MatanYadaev commented on Sep 1, 2017

    @MatanYadaev
  22. osman-mohamad commented on Oct 5, 2017

    @osman-mohamad

    is all ionic styles in one file when deployed ? if that is the case you can use "rtlcss" postcss plugin to change the direction for all css rules . I used it with many frameworks like "bootstrap", "bulma", "quasar framework" . if any one has tested it before with ionic . I want his advice about it .

    thank you

  23. AmitMY commented on Oct 5, 2017

    @AmitMY
    Contributor

    @osman-mohamad Currently the build process generates 1 file, but it is going to change soon.
    Creating an RTL file I think is less maintainable than the current solution, as some styles must not change because they are live changed from TS and that creates problems
    We are in the home stretch for full support.

  24. ionitron-bot commented on Oct 5, 2018

    @ionitron-bot

    Thanks for the issue! This issue is being closed due to inactivity. 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.

    Thank you for using Ionic!

  25. locked and limited conversation to collaborators on Oct 5, 2018
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

    help wanted

    Type

    No type

    Fields

    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