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(snack-bar): improper button styling and improved handling of long text #2991

Merged
merged 1 commit into from
Feb 9, 2017

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Feb 8, 2017

  • Simplifies the snack bar styles, removing some redundancy.
  • Fixes the snack bar using the md-button styles directly. This causes it to break if another md-button isn't on the page in order to import the styles. These changes switch to styling the snack bar button independently since it barely shares any styles with md-button anyway.
  • Fixes a wrong selector that wasn't styling anything.
  • Adds better handling for long text strings inside snack bars.

Fixes #2979.

… text

* Simplifies the snack bar styles, removing some redundancy.
* Fixes the snack bar using the `md-button` styles directly. This causes it to break if another `md-button` isn't on the page in order to import the styles. These changes switch to styling the snack bar button independently since it barely shares any styles with `md-button` anyway.
* Fixes a wrong selector that wasn't styling anything.
* Adds better handling for long text strings inside snack bars.

Fixes angular#2979.
@crisbeto crisbeto requested a review from kara February 8, 2017 20:11
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 8, 2017
Copy link
Contributor

@andrewseguin andrewseguin left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for the quick fix on this. The mat-button style was a temporary fix, but certainly didn't catch all cases.

@andrewseguin andrewseguin added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Feb 8, 2017
@crisbeto
Copy link
Member Author

crisbeto commented Feb 8, 2017

The selector issue wasn't due to the mat- changes, it had been there for a while. I had this PR prepared right before yours got merged.

@tinayuangao tinayuangao merged commit 93937e6 into angular:master Feb 9, 2017
@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 action button styling when no other md-button is used on the page
5 participants