Skip to content

Commit 3583913

Browse files
crisbetovivian-hu-zz
authored andcommitted
fix(button-toggle): remove extra focus indication added by firefox (#13367)
Resets the extra focus indication that Firefox adds on top of our custom indication.
1 parent cb5b15e commit 3583913

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/button-toggle/button-toggle.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,9 @@ $mat-button-toggle-legacy-border-radius: 2px !default;
151151
.mat-button-toggle-disabled & {
152152
cursor: default;
153153
}
154+
155+
// Remove the extra focus outline that is added by Firefox on native buttons.
156+
&::-moz-focus-inner {
157+
border: 0;
158+
}
154159
}

0 commit comments

Comments
 (0)