-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(button): align with 2018 material design spec #12537
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
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
I suspect this be be the most screenshot diffs we've ever done.
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.
In addition to the styling changes that you have in this PR, we should take this chance to not set the default color of FABs as primary and instead allow a non-themed FAB.
src/lib/button/_button-base.scss
Outdated
padding: $mat-button-padding; | ||
border-radius: $mat-button-border-radius; | ||
letter-spacing: 0.08929em; |
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.
Letter spacing should be handled in the typography correct?
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.
At least at the moment we don't have letter spacing as a part of the config. I can add it in when I get to doing the typography changes.
I'm iffy about making fabs not default to accent |
@jelbourn Is your concern with the amount of change this will bring? Or a bad default state? |
@josephperrott mainly that it's too breaking of a change, but also that I do suspect most people won't want a default (gray) FAB. |
4c75bad
to
ba6edd7
Compare
I've moved out the letter spacing into the typography mixin and will hold off on switching the default color for FABs @josephperrott. |
@jelbourn okay, works for me. Lets leave it as the default for now and we can look in the future at allowing for a provider to defines the default for an app. |
Removing merge ready as we plan to rework this PR a bit. |
Aligns the button component with the latest Material design spec.
ba6edd7
to
51bd101
Compare
I've reworked the PR as discussed. The screenshot above has been updated as well. Mark as merge ready again. |
Aligns the button component with the latest Material design spec. This includes the changes from angular#12537 and angular#13011.
Aligns the button component with the latest Material design spec. This includes the changes from angular#12537 and angular#13011.
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. |
Aligns the button component with the latest Material design spec.

