Skip to content

bug(Dialog): dialogs have default max-width of 560px for screen larger then 560px #30349

Closed
@richardsengers

Description

@richardsengers

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

M2

Description

A mat-dialog has a default of 560px as a max-width.
Offcourse we can override this behaviour but to me it looks like it's a wrong default because all dialogs are max 560px when changing to the new m3

Image

Reproduction

StackBlitz link: https://stackblitz.com/edit/tjvfafte-mzvlpzlp?file=src%2Fexample%2Fdialog-overview-example.ts
Steps to reproduce:

  1. Make screen larger then 560px, you will notice the dialog isn't getting larger

Expected Behavior

When a width is set to the dialog, the dialog should be as wide as the given width

Actual Behavior

The dialog has a max width of 560px

Environment

Angular CLI: 19.0.5
Node: 22.3.0
Package Manager: yarn 1.22.17
OS: win32 x64

Angular: 19.0.4
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker

Package Version

@angular-devkit/architect 0.1900.5 (cli-only)
@angular-devkit/build-angular 19.0.5
@angular-devkit/core 19.0.5
@angular-devkit/schematics 19.0.5
@angular/cdk 19.0.3
@angular/cli 19.0.5
@angular/material 19.0.3
@angular/material-date-fns-adapter 19.0.3
@schematics/angular 19.0.5
rxjs 7.8.1
typescript 5.6.3
zone.js 0.15.0

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