-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/form-field
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
I'm not 100% sure, but it worked before
Description
The mat-label
does not wrap the text with ellipsis anymore in the mat-datepicker
. Instead the text goes over the icon/control itself.
<mat-form-field style="width: 200px;">
<mat-label>To long to show all text</mat-label>
<input
matInput
[matDatepicker]="dateLoan"
readonly
formControlName="dateFinalPaymentControl"
/>
<mat-datepicker-toggle matSuffix [for]="dateLoan"></mat-datepicker-toggle>
<mat-datepicker #dateLoan></mat-datepicker>
</mat-form-field>
Reproduction
Steps to reproduce:
- Simple add create a mat-datepicker with a mat-label with new version 15.x
Stackblitz is available
Expected Behavior
Before the text was trimmed with ellipsis like this:
Actual Behavior
Now is go outside the control/over the icon:
Environment
- Angular: 15.0.4
- CDK/Material: 15.0.3
- Browser(s): (Chrome, Edge, Firefox)
- Operating System: MacOS
ChristianKlima, adumitrescu-plenty and Laess3rChristianKlima
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/form-field