-
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(item-sliding): RTL fix for item sliding #11825
Conversation
This will complete with #11822 |
I am not sure about doing it from TS.
Because:
What do you think? |
@AmitMY Yeah well ... this was just a quick fix for this... |
@sijav Haha not bashing or anything, you are doing great work :) This can be merged and fixed in the future, but we all know what happens when we say that :P |
I know I meant that I didn't think of anything but to announce this bug. |
@AmitMY I've changed the fix, I'm using scss changes instead of ts changes... let me know what you think. |
@sijav Did you test this? it seems very odd to me. Also that you changed the width, and classes that are not related as I think that what needs to be changed is the order, not these classes (which are clones - see #11829) I believe this selector - "ion-item-sliding.active-swipe-right button[expandable] {" needs a change, like:
but don't worry about it, as the I think this one should be paused for the moment, and when this - #11635 - gets merged, we should continue discussion |
@AmitMY this is still buggy but that doesn't have to do with just a simple order the left and right should be for left and right only regardless of being ltr or rtl, I'm working on it and let you know ... |
unless we use start or end for rtl and ltr right should be placed right and so does left.
@AmitMY Could you please review this? this is the only way I could make it work! |
@include rtl() { | ||
justify-content: flex-start; | ||
|
||
&:not([side=right]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these :not([side=right])
are here for default side (when side is not defined in sliding option item) in RTL mode.
In LTR mode there should be positioned on right by default but on RTL they need to be placed left...
In another word when side is not defined it should be placed on end
…l-fix-item-sliding
…l-fix-item-sliding
Can you please redo this with |
@AmitMY done, can you review this? |
@@ -17,26 +17,52 @@ ion-item-sliding .item { | |||
} | |||
|
|||
ion-item-options { | |||
@include position(0, 0, null, null); | |||
|
|||
// scss-lint:disable PropertySpelling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this comment to inside the mixin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AmitMY so I should put it at two places? multi-dir and rtl mixin at the same main selector?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better, yes. Just so it is more specific.
Thank you! 👍 |
Short description of what this resolves:
this will resolve a but that options would disappear on RTL.
Changes proposed in this pull request:
Ionic Version: 3.x
Fixes: #11211