-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
bug(mdc-snack-bar): Still uses legacy mat-button #22024
Closed
Labels
area: material/button
G
This is is related to a Google internal issue
P2
The issue is important to a large percentage of users, with a workaround
Comments
jelbourn
added
area: material/button
G
This is is related to a Google internal issue
P2
The issue is important to a large percentage of users, with a workaround
and removed
needs triage
This issue needs to be triaged by the team
labels
Feb 25, 2021
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Feb 26, 2021
Switches the MDC-based snack bar to use the MDC-based button. In general we should be using the MDC versions of components together, when possible. Fixes angular#22024
annieyw
pushed a commit
that referenced
this issue
Mar 5, 2021
Switches the MDC-based snack bar to use the MDC-based button. In general we should be using the MDC versions of components together, when possible. Fixes #22024
This was referenced Mar 17, 2021
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: material/button
G
This is is related to a Google internal issue
P2
The issue is important to a large percentage of users, with a workaround
Expected Behavior
Should use the mdc MatButtonModule
Actual Behavior
Uses the legacy MatButtonModule
https://github.com/angular/components/blob/master/src/material-experimental/mdc-snack-bar/module.ts
This might be because CSS selectors in the MDC button theme are more specific than the selectors that set the color for the snack bar action. So simply updating the module will not work - it will require some tweaks to the snack bar Sass theme to increase selectivity of the Action button selector (https://github.com/angular/components/blob/master/src/material-experimental/mdc-snack-bar/_snack-bar-theme.scss#L39)
This is blocking internal issue b/181260087
Environment
The text was updated successfully, but these errors were encountered: