Skip to content

bug(COMPONENT): Misnamed property for snackbar theme #29172

@steveareeno

Description

@steveareeno

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

In the node modules/@angular/material folder, the file _index.scss has a forward rule for the material UI snackbar with a misnamed property:

@forward './snack-bar/snack-bar-theme' as snack-bar-* show snack-bar-theme, snack-bar-color, snack-bar-typography, snack-bar-density, snack-bar-base, bar-overrides;

The last property, "bar-overrides", should probably be "snackbar-overrides" like all the other properties

Reproduction

StackBlitz link:
Steps to reproduce:

  1. Open the file in the @angular/material node modules folder
  2. Find the forward rule for snackbar

Expected Behavior

Expect the property to be named snackbar-bar-overrides like the other properties.

Actual Behavior

The property is named "bar-overrides"

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workaroundarea: material/snack-bar

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions