Skip to content

bug(mdc-migration): Snackbar migration doesn't migrate 'mat-simple-snackbar-action' class #26178

Closed
@michaelfaith

Description

@michaelfaith

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

After running the MDC Migration, I noticed the mat-simple-snackbar-action class wasn't migrated to the new mdc class. I believe it should be mat-mdc-snack-bar-action. I confirmed it doesn't appear to be in the map used in the schematic config:

Not sure if that class just isn't considered official public API or not. We're using it to override the action button color, and noticed it didn't get migrated.

Reproduction

Steps to reproduce:

  1. Run Snackbar migration on app with overrides to .mat-simple-snackbar-action

Expected Behavior

Migrate to .mat-mdc-snack-bar-action

Actual Behavior

Left the class alone

Environment

  • Angular: 15.0.0
  • CDK/Material: 15.0.0
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/snack-bar

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions