Skip to content

bug(form-field): mat-form-field text overlap with suffix icon #31108

Open
@Mradmedamine

Description

@Mradmedamine

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

when having mat-form-field with long label text the text overlap with suffix icon

Reproduction

StackBlitz link: https://stackblitz.com/edit/sktdb4nx-laqmu1py?file=src%2Fexample%2Fform-field-appearance-example.html
Steps to reproduce:

  1. just put a long text on a mat-form-field with suffix icon

Expected Behavior

no overlap with long text

Actual Behavior

Image

the text overlaps with the icon

Environment

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

Activity

ThornWalli

ThornWalli commented on May 14, 2025

@ThornWalli

Hello,

have already experienced the same behavior with Angluar 18.

Stackblitz: https://stackblitz.com/edit/stackblitz-starters-jdfeo5oc?file=src%2Fapp%2Fapp.component.html

changed the title [-]bug(COMPONENT): mat-form-field text overlap with suffix icon[/-] [+]bug(form-field): mat-form-field text overlap with suffix icon[/+] on May 14, 2025
andrewseguin

andrewseguin commented on May 14, 2025

@andrewseguin
Contributor

Besides "no overlap", what behavior are you expecting here? Ellipsis is not ideal since we do not want to hide visual text, especially a label.

added
P4A relatively minor issue that is not relevant to core functions
and removed
needs triageThis issue needs to be triaged by the team
on May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      bug(form-field): mat-form-field text overlap with suffix icon · Issue #31108 · angular/components