components icon indicating copy to clipboard operation
components copied to clipboard

bug(mat-form-field): Label position is wrong (appearance="outline") when mat-form-field is placed inside drawer

Open atcen opened this issue 2 years ago • 1 comments

Is this a regression?

  • [X] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

14

Description

If the mat-form-field is empty and not focused, then the label moves behind the icon. the error only occurs with appearance="outline" and within a drawer that is not open by default

Reproduction

Steps to reproduce:

  1. place mat-form-field with appearance="outline" inside drawer
  2. place icon inside fat-form-field with matPrefix

Demo https://stackblitz.com/edit/angular-ivy-qb7mbe?file=src/app/app.component.ts

Expected Behavior

old behaviour

Actual Behavior

image

Environment

  • Angular: 15
  • CDK/Material: 15
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Ubuntu

atcen avatar Dec 27 '22 13:12 atcen

After an year this issue is still present on Angular 17, why the fix was not merged yet?

sedax90 avatar Dec 14 '23 09:12 sedax90

It happens to me exactly the same. Captura de pantalla 2024-03-22 a la(s) 5 53 37 p m

@angular/animations": "17.0.9",
    "@angular/cdk": "17.0.5",
    "@angular/common": "17.0.9",
    "@angular/compiler": "17.0.9",
    "@angular/core": "^17.0.9",
    "@angular/forms": "17.0.9",
    "@angular/material": "17.0.5",
    "@angular/platform-browser": "17.0.9",
    "@angular/platform-browser-dynamic": "17.0.9",
    "@angular/router": "17.0.9",

IngAjVillalon avatar Mar 22 '24 23:03 IngAjVillalon