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

feat(snack-bar): allow setting the layout direction #4726

Merged
merged 3 commits into from May 23, 2017

Conversation

crisbeto
Copy link
Member

  • Allows the consumer to set the layout direction of a snack bar.
  • Fixes some bad indentation in the snack bar tests.

Fixes #4721.

* Allows the consumer to set the layout direction of a snack bar.
* Fixes some bad indentation in the snack bar tests.

Fixes angular#4721.
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 22, 2017
@@ -28,4 +28,9 @@ $mat-snack-bar-button-margin: 48px !default;
size: inherit;
weight: 600;
}

/deep/ [dir='rtl'] & {
Copy link
Member

Choose a reason for hiding this comment

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

I would like to avoid having /deep/ anywhere in the library.
(and prefer turning off ViewEncapsulation)

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. Also fixed the button not being uppercase for some reason.

Copy link
Contributor

@donroyco donroyco left a comment

Choose a reason for hiding this comment

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

Why is the text-transform: uppercase suddenly back? I removed it in #4567

@crisbeto
Copy link
Member Author

crisbeto commented May 23, 2017

I re-added it, because it seemed off based on the spec and I remembered it being there at some point. I'll remove it when I get back home.

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels May 23, 2017
@tinayuangao tinayuangao merged commit 0e24345 into angular:master May 23, 2017
crisbeto added a commit to crisbeto/material2 that referenced this pull request May 27, 2017
Adds a custom Stylelint rule to prevent usages of `/deep/` inside selectors.

Relates angular#4726.
mmalerba pushed a commit that referenced this pull request May 31, 2017
* build: add stylelint rule to prevent usage of /deep/

Adds a custom Stylelint rule to prevent usages of `/deep/` inside selectors.

Relates #4726.

* fix: address feedback
@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 6, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Snackbar RTL text support.
5 participants