Skip to content

bug(mat-dialog): Dialog token "content-padding" does not apply any styles despite being listed in documentation #31742

@LukaszPietrzykowski16

Description

@LukaszPietrzykowski16

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

Reproduction

The content-padding token is documented as supported by mat.dialog-overrides:
https://material.angular.dev/components/dialog/styling

However, when trying to use it, nothing changes in the dialog content.

Image

Reproduction

StackBlitz link: https://stackblitz.com/edit/rtyfhwua?file=src%2Fstyles.scss,src%2Fmain.ts
Steps to reproduce:

  1. add in .scss file
:root {
  @include mat.dialog-overrides(
    (
      content-padding: 40px,
    )
  );
}
  1. open dialog

Expected Behavior

The content-padding token should apply padding inside the .mat-mdc-dialog-content element (like other tokens such as actions-padding or headline-padding do).

Actual Behavior

The content-padding don't apply padding inside the .mat-mdc-dialog-content

Environment

Angular: 20.1.6
Angular Material: 20.1.6
Browser(s): All (reproduced in Chrome, Firefox, Edge)
Operating System: All (reproduced in StackBlitz environment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions