angular / angular/components

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

Open
#27,130 3 comments 0 reactions 0 assignees View on GitHub
area: material/button P4
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
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

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

Contributor guide

Open the contributing guide

Research direction

Reproduce the layout in the linked StackBlitz, starting with src/styles.scss and src/app/button-overview-example.css, and compare it with the v14 example. Confirm how the changed icon-button dimensions affect alignment with other button types; done means icon buttons share the expected baseline.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular
Domain
design, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.