Closed
Description
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 using mat-form-field together with prefix or suffix and long label, label is overflowing input box. Seems that text-overflow: ellipse doesn't account for suffix neither prefix width.
`
info_outline
Very very very very very long label
Very very very very long label
Reproduction
Steps to reproduce:
- Create mat-form-field with matIconSuffix or matIconPrefix.
- Create mat-label with long text.
- If label text is wider than input box, then label is overflowing it.
Expected Behavior
Label should not overflow input box.
Actual Behavior
Environment
- Angular: 15.1.2
- CDK/Material: 15.1.2
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows