Repository navigation
Closed
Labels
help wanteda good issue for the community
Description
This issue is to track support for RTL across the framework.
It is a combination of many issues that have existed for some time.
- Back button pointing to opposite side on RTL direction #10685 | Back button pointing to opposite side on RTL direction
- DateTime rtl view error #10878 | DateTime rtl view error
- Alerts in RTL apps appears LTR #10147 | Alerts in RTL apps appears LTR
- Ionic 2 Badges space issue (RTL) #10077 | Ionic 2 Badges space issue (RTL)
- feat(rtl): RTL support in one method #11115 | feat(rtl): RTL support in one method
- Ionic 2 menu opens from left instead of right (RTL) #10074 | Ionic 2 menu opens from left instead of right (RTL)
- ion-select style in rtl wrong #9815 | ion-select style in rtl wrong
- dynamically change menu side direction when change document direction #9526 | dynamically change menu side direction when change document direction
- bug: Sliding List buttons not show up in RTL direction #8107 | bug: Sliding List buttons not show up in RTL direction
- When using rtl direction in html tag, the margin between range component and its labels disappears #7488 | When using rtl direction in html tag, the margin between range component and its labels disappears
- blank screen after modal pop up shows from side menu on rtl #6694 | blank screen after modal pop up shows from side menu on rtl
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?
Reacted by Jan Piotrowski, Nir Goldman, Ashfaq Patwari, Alwan, Sebastián Ferreras, Hirad Daneshvar and Hatem
Metadata
Metadata
Assignees
Labels
help wanteda good issue for the community
Type
Fields
No fields configured for issues without a type.
Activity
theunreal commentedon Apr 13, 2017
Sure, I'll do my best, I'm already running production RTL Ionic 2 app and I can track most of the issues
AmitMY commentedon Apr 13, 2017
Same here, glad to help.
docs(theming): add the new utility attributes
jlucfarias commentedon Apr 14, 2017
I'll do what I can for this
refaelgold commentedon Apr 15, 2017
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.
AmitMY commentedon Apr 15, 2017
@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.
alaa-alshamy commentedon Apr 15, 2017
@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 ?
AmitMY commentedon Apr 15, 2017
@alaa-alshamy That is exactly what this thread is about..
About
X-left-> The plan is to haveX-startin addition, andX-leftwill 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.
jlucfarias commentedon Apr 15, 2017
@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
alaa-alshamy commentedon Apr 16, 2017
@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
sefidary commentedon Apr 16, 2017
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
AmitMY commentedon Apr 19, 2017
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 remaining items
sijav commentedon Jun 13, 2017
I went through the whole UI Components test, the only RTL problems that I could see were:
AmitMY commentedon Jun 13, 2017
menuToggle=start/endfeat(rtl): menu update side in runtime #11336 (the most needed fix there is at the moment)@sijav About DateTime, this is a step in the right direction but not full support - #11992
AmitMY commentedon Jun 15, 2017
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
alaa-alshamy commentedon Jun 17, 2017
@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
AmitMY commentedon Jun 17, 2017
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)
alaa-alshamy commentedon Jun 18, 2017
@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
AmitMY commentedon Jun 18, 2017
@alaa-alshamy Oh ok, added to the list
MatanYadaev commentedon Sep 1, 2017
#12799
osman-mohamad commentedon Oct 5, 2017
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
AmitMY commentedon Oct 5, 2017
@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.
ionitron-bot commentedon Oct 5, 2018
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!