-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] RTL support for Ionic #11211
Comments
Sure, I'll do my best, I'm already running production RTL Ionic 2 app and I can track most of the issues |
Same here, glad to help. |
I'll do what I can for this |
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. |
@refaelgold I am a dev from Israel as well. |
@mhartington 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 ? |
@alaa-alshamy That is exactly what this thread is about.. |
@refaelgold if you know about any issue of RTL support in ionic you can get it and open a PR to solve it. |
@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 : 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 |
temporary add this file to app folder to fix all style problem in rtl project (support v3 grid system) node_modules\ionic-angular\components\toggle to fix toggle and ios transaction |
This repo has some of the RTL problems, and proposed fixes: Currently it only has problems with open PRs fixing them. |
@AmitMY and @John-Luke would you both mind sending over an email? |
I am developing a multi-language app, including both LTR and RTL languages. Right now i can't go into this more detailed but maybe my scss file with RTL fixes is of help here. It fixes the segment bar, back button and (i think) the arrows in list-items. html[dir=rtl] {
.segment-ios .segment-button {
&:last-of-type {
margin-right: 0;
border-left-width: 1px;
border-radius: $segment-button-ios-border-radius 0 0 $segment-button-ios-border-radius;
}
&:not(:last-of-type) {
border-left-width: 0;
}
&:first-of-type {
margin-left: 0;
border-left-width: 0;
border-radius: 0 $segment-button-ios-border-radius $segment-button-ios-border-radius 0;
}
}
[ion-item] .item-inner {
@include svg-background-image("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M2,20l-2-2l8-8L0,2l2-2l10,10L2,20z' fill='#{$item-ios-detail-push-color}' transform='rotate(180 6 10)'/></svg>");
background-position: left 0px center;
padding-left: 32px;
padding-right: 0;
}
.back-button-icon:before {
content: '\f3d1';
}
} it is possible that some of this is already fixed, this code is a few month old already. |
@metzc Thanks for the code. If you have any other custom RTL support, we would love a pull request, or if you don't have the time, even an issue describing the problem, so someone will make a PR fixing it. |
one thing is about the slides,
and about Floating Labels there's another scss
|
@sijav The floating code looks alright, can you create a PR? |
@sijav About slides it already has RTL support man, as mentioned in ionic slides doc: there's "dir" input, so ur code should be something like this:
or i misunderstood what do u mean? |
@AmitMY sure added, |
@sefidary I used your ios-transition.js file - it works like a charm! |
reorder button in reorder list does not work for rtl direction list because of -100 in this code:
we should add 100 for rtl and subtract 100 for ltr |
* docs(theming): add the new utility attributes references ionic-team/ionic-framework#11211 * docs(theming): update docs to include responsive attributes * derp: update stylesheet
I went through the whole UI Components test, the only RTL problems that I could see were:
|
@sijav About DateTime, this is a step in the right direction but not full support - #11992 |
Everyone on this thread, please try out v3.4.0 Please comment here if there are any more issues other than described in the 2 comments above |
@AmitMY first of all nice job and thanks for ur awesome PRs but i have some issues: |
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 |
@alaa-alshamy Oh ok, added to the list |
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 |
@osman-mohamad Currently the build process generates 1 file, but it is going to change soon. |
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! |
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?
The text was updated successfully, but these errors were encountered: