Repository navigation
fix(menu): rtl fix for menu - #11830
Conversation
|
Add "// scss-lint:disable PropertySpelling" above 'left: auto' so it will pass linting |
|
Remove the css changes, as they are conflicting, and this will be reviewed soon |
|
@AmitMY what multidir mixin does? It just use the same code for both ltr and rtl? Can I use it in my other PRs? |
|
Otherwise, specificity rules can override it. You can and should use it in your PRs, only on directional properties. I have a list of all PRs and correct order to review them, and what relies on what. Your other PRs show as "not ready" for me as of a small dependency. I will update you as soon as that is taken care of Left side is without it, middle is with, right is differences: http://ionic-snapshot-go.appspot.com/ionic2/snapshots/d4t/hhp/chrome_400x800 |
This reverts commit 87c3302.
…l-fix-menu # Conflicts: # src/components/menu/menu.scss
|
@AmitMY waiting for another review, I've tested |
|
This goes well with #11336, which is not done becasue of bad animation after changing direction. Mind having a look? ( |
| @include multi-dir() { | ||
| left: 0; | ||
| right: auto; | ||
| } |
There was a problem hiding this comment.
Leave menu.scss unchanged
The correct default is start, and thus 0, auto, 0, 0 is correct
You are correct that there is a need to address left, so #11953
Sorry for all of the mess around this.
This reverts commit f657369.
|
@AmitMY I reverted the commit but if you mind please check the left menu in tablet mode it doesn't open at an appropriate position also about the #11336 commit I'll take a look but there's a lot of things changed which I'm not sure why are these things changed? why we are using a custom animation here? would you mind explaining a bit about your changes? |
|
|
||
| onSlide(slide: SlideData, ev: any) { | ||
| const z = (this.menu.isRightSide ? slide.min : slide.max); | ||
| const z = ((this.menu.isRightSide && !this.plt.isRTL) || (!this.menu.isRightSide && this.plt.isRTL) ? slide.min : slide.max); |
There was a problem hiding this comment.
(this.menu.isRightSide && !this.plt.isRTL) || (!this.menu.isRightSide && this.plt.isRTL)
is logically equal to:
this.menu.isRightSide !== this.plt.isRTL
Can you fix this in all of the expressions in this PR?
There was a problem hiding this comment.
@AmitMY well technically yes but I put it that way for more readability ...
Ok I will change all of em
|
I can confirm that menu scss problems has been fixed by #11953 Thanks @AmitMY |
| getElementStartPos(slide: SlideData, ev: any) { | ||
| const menu = this.menu; | ||
| if (menu.isRightSide) { | ||
| if (this.menu.isRightSide !== this.plt.isRTL) { |
There was a problem hiding this comment.
Can you please change this.menu to menu?
There was a problem hiding this comment.
I missed it too :) orders from above
Short description of what this resolves:
This will fix the menu for rtl direction.
Changes proposed in this pull request:
Ionic Version: 3.x
Fixes: #11211
This will complete after: #11822