angular / angular/components

bug(mat-icon-button): icon buttons are not baselined with other types of buttons after changing height and width

Aperta
#27,130 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area: material/button P4
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

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

v14

### Description

Icon buttons are not baselined with other types of buttons after changing height and width

v16 (https://stackblitz.com/edit/tzatnc?file=src%2Fstyles.scss,src%2Fapp%2Fbutton-overview-example.css)

![image](https://github.com/angular/components/assets/34937515/443a457f-1c3a-4da5-9e1b-b68c0cc7bf26)

v14 (https://stackblitz.com/edit/hgda6s?file=src%2Fstyles.scss,src%2Fapp%2Fbutton-overview-example.html)

![image](https://github.com/angular/components/assets/34937515/b28d632d-f7bb-4c1a-a4c0-f7df5a40a7e7)

### Reproduction

Steps to reproduce:
1. Open [this stackblitz](https://stackblitz.com/edit/tzatnc?file=src%2Fstyles.scss,src%2Fapp%2Fbutton-overview-example.css)
2. Check the UI

### Expected Behavior

Icon Buttons should be baselined with other buttons

### Actual Behavior

Icon Buttons are not baselined with other buttons

### Environment

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Riproduci il layout nello StackBlitz collegato, iniziando da src/styles.scss e src/app/button-overview-example.css, e confrontalo con l’esempio v14. Conferma in che modo le dimensioni modificate dei pulsanti icona influiscono sull’allineamento con gli altri tipi di pulsanti; il lavoro è completato quando i pulsanti icona condividono la linea di base prevista.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular
Ambito
design, frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.