Skip to content

bug(form-field): mat-label overlap mat-suffix #28743

Open
@RedHeadEmile

Description

@RedHeadEmile

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

15.x

Description

When the mat-label is too long, it overlap the mat-suffix of the mat-form-field.

Reproduction

  • Create a mat-form-field
  • Place a mat-suffix inside of it
  • Place a long mat-label inside of it

Expected Behavior

Capture d’écran 2024-03-19 084043

Actual Behavior

Capture d’écran 2024-03-19 084335

Environment

  • Angular: 17.x
  • CDK/Material: Material
  • Browsers: Firefox & Google Chrome
  • Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions