Skip to content

bug(DIALOG): dialog's container-color does not follow Material 3 design specs #30536

Open
@shhdharmen

Description

@shhdharmen

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

As per Material 3 guidelines, container-color should use value surface-container-high token, but it's using value surface token.

We can override it by using dialog-overrides mixin like below:

@include mat.dialog-overrides((
  container-color: var(--mat-sys-surface-container-high),
));

But, it should be the default behaviour as per Material 3 specs.

Reproduction

Not needed

Expected Behavior

As per Material 3 guidelines, container-color should use value surface-container-high token.

Actual Behavior

Dialog's container-color is using value surface token.

Environment

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

Activity

added
P2The issue is important to a large percentage of users, with a workaround
and removed
needs triageThis issue needs to be triaged by the team
on Feb 24, 2025
added a commit that references this issue on Jun 1, 2025
6e99b9b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @shhdharmen@wagnermaciel

      Issue actions

        bug(DIALOG): dialog's container-color does not follow Material 3 design specs · Issue #30536 · angular/components