Skip to content

Commit

Permalink
fix(material/button): anchor mat-icon-button as matSuffix focus misal…
Browse files Browse the repository at this point in the history
…igned (#21117)

* fix(material/button): anchor mat-icon-button as matSuffix focus misaligned

Fixes misaligning anchor element with mat-icon-button applied. This also fixes misaligning on other elements like div.

Fixes #20949

* fix(material/button): fix height is increased in firefox

Fixes #20949

Co-authored-by: Takuma Kira <takuma@kirakiraworx.com>
(cherry picked from commit 54d6b3e)
  • Loading branch information
TakumaKira authored and mmalerba committed Jan 15, 2021
1 parent 4b38bd9 commit 55253ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/material/button/button.scss
Expand Up @@ -143,7 +143,9 @@
.mat-form-field-prefix,
.mat-form-field-suffix {
.mat-icon-button {
display: block;
display: inline-flex;
justify-content: center;
align-items: center;
font-size: inherit;
width: 2.5em;
height: 2.5em;
Expand Down

0 comments on commit 55253ab

Please sign in to comment.