Skip to content
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

Merged
merged 1 commit into from
Feb 24, 2018

Conversation

jelbourn
Copy link
Member

#7111 caused grid-lists inside of dialogs to get a Directionality value of undefined, which made them default to RTL because of a overstrict check.

@jelbourn jelbourn added P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful pr: needs review G This is is related to a Google internal issue target: patch This PR is targeted for the next patch release labels Feb 23, 2018
@jelbourn jelbourn requested a review from kara as a code owner February 23, 2018 21:12
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 23, 2018
Copy link
Contributor

@tinayuangao tinayuangao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@crisbeto crisbeto left a 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.

@@ -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';
Copy link
Member

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'.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@crisbeto crisbeto added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Feb 24, 2018
@jelbourn jelbourn merged commit 64ef3a8 into angular:master Feb 24, 2018
mmalerba pushed a commit to mmalerba/components that referenced this pull request Feb 26, 2018
jelbourn added a commit to jelbourn/components that referenced this pull request Feb 27, 2018
@jelbourn jelbourn deleted the grid-list-dir-fix branch April 2, 2018 22:31
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement G This is is related to a Google internal issue P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants