-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(grid-list): default to LTR when Directionality value is empty #10111
Conversation
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.
LGTM
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.
LGTM. I think it was actually #9994 that broke it, because we used to default the dialog to ltr
.
src/lib/grid-list/tile-styler.ts
Outdated
@@ -106,7 +106,7 @@ export abstract class TileStyler { | |||
|
|||
// The width and horizontal position of each tile is always calculated the same way, but the | |||
// height and vertical position depends on the rowMode. | |||
let side = this._direction === 'ltr' ? 'left' : 'right'; | |||
let side = !this._direction || this._direction === 'ltr' ? 'left' : '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.
This one could be switched around to this._direction === 'rtl' ? 'right' : 'left'
.
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.
Done
8585075
to
557922f
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
#7111 caused grid-lists inside of dialogs to get a
Directionality
value ofundefined
, which made them default to RTL because of a overstrict check.