Skip to content

bug(COMPONENT): mat.datepicker-density not working like mat.form-field-density #28057

Open
@probfacile

Description

@probfacile

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

mat.datepicker-density not working like mat.form-field-density and datepicker is bigger than form field.

Reproduction

StackBlitz link: https://stackblitz.com/edit/unglus?file=src%2Fexample%2Fdatepicker-overview-example.html
Steps to reproduce:

  1. add density to a form and inline fields with a date picker
  2. they will be different

Expected Behavior

same density should match

Actual Behavior

density of picker doesn't match input density

Environment

"@angular/animations": "^17.0.0-rc.0",
"@angular/cdk": "16.2.11",
"@angular/common": "^17.0.0-rc.0",
"@angular/compiler": "^17.0.0-rc.0",
"@angular/core": "^17.0.0-rc.0",
"@angular/forms": "^17.0.0-rc.0",
"@angular/material": "16.2.11",
"@angular/material-moment-adapter": "16.2.11",
"@angular/platform-browser": "^17.0.0-rc.0",
"@angular/platform-browser-dynamic": "^17.0.0-rc.0",
"@angular/router": "^17.0.0-rc.0",
"@angular/ssr": "^17.0.0-rc.0",
"moment": "^2.18.1",

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/datepickerdocsThis issue is related to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions