Skip to content

Commit 541bf5b

Browse files
TakumaKiraTakuma Kira
authored andcommitted
fix(material/button): anchor mat-icon-button as matSuffix focus misaligned (#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 <[email protected]> (cherry picked from commit 54d6b3e)
1 parent 27d1f29 commit 541bf5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/material/button/button.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@
143143
.mat-form-field-prefix,
144144
.mat-form-field-suffix {
145145
.mat-icon-button {
146-
display: block;
146+
display: inline-flex;
147+
justify-content: center;
148+
align-items: center;
147149
font-size: inherit;
148150
width: 2.5em;
149151
height: 2.5em;

0 commit comments

Comments
 (0)