-
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
fix(spinner): RTL fix for Spinner #12069
Conversation
Wow I didn't even notice, on a phone are they actually reversed? This seems overly complicated, perhaps it can be simplified to just on RTL have "transform: scaleX(-1)"? Not sure, and I can't test it today, but I think it would work, like range & progress bar. Or perhaps, we can just make the rotate into the transform mixin. On ltr X is (360-X) on rtl. That seems like a general solution for all of the rotation animations that exist. I will properly review this tomorrow night. |
@AmitMY I just checked android's Play Store on RTL it was not anti clockwise so I guess this thing is not necessary. |
Ok good to know |
@AmitMY we are using |
I was not aware padding and margin horizontal don't work correctly. Can you explain a bit more? Current state is that search bar works great, other than animated search bar which breaks the view |
@AmitMY for instance we have =>
what it will be compiled is =>
see? no specified |
Make sure $app-direction is set to "multi". |
Weird, I'll check the bundle with no multi. |
@AmitMY I've removed my comment, I'm checking it again something is wierd I'll let you know |
@AmitMY nothing is wrong, it was chrome bug with rtl where it place the scroll bar at left instead of right in rtl mode and when we switch to phone view chrome still keeps the scroll bar intact which is not alright. nothing that we can do though |
@AmitMY please check with no multi no ltr and rtl no nothing we will face many |
About the segment, you are correct. it is a non-issue then. If I set it to nothing (can't nothing, so I'm just now adding a check for "is the current direction loaded" |
Short description of what this resolves:
This will make sure that the spinners will go anti-clockwise in RTL mode
This will also fix bubbles and circles spinner on rtl
Changes proposed in this pull request:
SPINNERS const
variable in spinner class'sload
function and add RTL support to it's functions.spinner-rotate-rtl
keyframes animation and assign rtl mixins to related selectorIonic Version: 3.x
Fixes: #11211