-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor(material-experimental/mdc-button): reorganize styles and expose all themes #22449
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
I'm surprised this is the case- it seems like we might want to change |
I think Andrew did this intentionally to reduce unused CSS (fab probably isn't used all that often). |
Does the migration tool add this automatically? |
Which migration tool? The |
The internal migration tool does add all 3 themes when you migrate the button component |
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
Updates all of the remaining docs to go through the new `@use` API instead of `@import`. **Note:** does not include the `mdc-button` readme, because the necessary mixins aren't exported yet. See angular#22449.
Updates all of the remaining docs to go through the new `@use` API instead of `@import`. **Note:** does not include the `mdc-button` readme, because the necessary mixins aren't exported yet. See angular#22449.
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 believe the intention in splitting was to save size
…ose all themes When I was setting up the new theming API for MDC, I assumed that the button theme would include the icon button and fab themes as well, but that's not the case. These changes reorganize the button theming styles into separate files so that we can easily expose the missing mixins under the correct prefix.
…ose all themes (#22449) When I was setting up the new theming API for MDC, I assumed that the button theme would include the icon button and fab themes as well, but that's not the case. These changes reorganize the button theming styles into separate files so that we can easily expose the missing mixins under the correct prefix. (cherry picked from commit ba06cd8)
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. |
When I was setting up the new theming API for MDC, I assumed that the button theme would include the icon button and fab themes as well, but that's not the case.
These changes reorganize the button theming styles into separate files so that we can easily expose the missing mixins under the correct prefix.