Skip to content

bug(mat-form-field): label not shown when appearance="fill" with styles generated on density: -2 #26185

@rafdewit

Description

@rafdewit

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-label is not showing on a mat-form-field when styles are generated with density: -2

Reproduction

Steps to reproduce:

  1. https://stackblitz.com/edit/angular-fxdho2?file=src/theme.scss
  2. mat-label is not visible
  3. change theme density to -1 and mat-label becomes visible

Expected Behavior

mat-label should be visible on density: -2 generated styles

Actual Behavior

mat-label is not visible :)

Environment

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

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