Skip to content

bug(mdc-snack-bar): Still uses legacy mat-button #22024

Closed
livepoll/live-poll
#189
@kseamon

Description

@kseamon

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

  • Angular: any
  • CDK/Material: 11
  • Browser(s): any
  • Operating System (e.g. Windows, macOS, Ubuntu): any

Metadata

Metadata

Assignees

Labels

GThis is is related to a Google internal issueP2The issue is important to a large percentage of users, with a workaroundarea: material/button

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions