angular / angular/components

bug(mat-form-field): when using appearance="outline", input fields increases in height.

Ouverte
#28,228 6 commentaires 4 réactions 0 personnes assignées Voir sur GitHub
area: material/form-field P2
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
91

Description

### 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

_No response_

### Description

When using mat-form-field with appearance="outline", text input field increases in height after entering a text
Reproduces on mobile devices with iOS 17+

### Reproduction

Steps to reproduce:

1. Open Safari 17 on a mobile device (it is the default browser for iOS 17)
2. Open Angular Material Page at https://material.angular.io/components/form-field/overview
3. Find Outline form field
4. Enter any text. Probably need to clear the field and enter the text again.

### Expected Behavior

The height of the field should be the same as the field without text
![image](https://github.com/angular/components/assets/10838804/e30f248c-4e49-4853-a190-87aada38a1b7)

### Actual Behavior

The field height is different compared to the field without text
![image](https://github.com/angular/components/assets/10838804/40351a90-d07f-4a99-b6a2-a09026faacc6)

### Environment

- Angular: 15-17
- CDK/Material: 15-17
- Browser(s): mobile Safari 17
- Operating System iOS 17.1.2

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par reproduire le problème sur la Angular Material form-field overview page dans mobile Safari 17, en utilisant un outline form field et en comparant sa hauteur avant et après la saisie de texte. Le travail est terminé lorsque l'outlined input conserve la même hauteur avec ou sans texte sur iOS 17+, la régression étant couverte par un test approprié du projet.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.