Skip to content

Commit f2953dd

Browse files
authored
fix(material-experimental/mdc-button): double outline for FAB in high contrast mode (#20391)
The MDC-based FAB don't need an extra outline high contrast mode, because they have one already.
1 parent 54218cd commit f2953dd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/material-experimental/mdc-button/button.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@
1212
@include _mat-button-disabled();
1313
}
1414

15-
// Add an outline to make buttons more visible in high contrast mode. Stroked buttons
15+
// Add an outline to make buttons more visible in high contrast mode. Stroked buttons and FABs
1616
// don't need a special look in high-contrast mode, because those already have an outline.
1717
.mat-mdc-button:not(.mdc-button--outlined),
1818
.mat-mdc-unelevated-button:not(.mdc-button--outlined),
1919
.mat-mdc-raised-button:not(.mdc-button--outlined),
2020
.mat-mdc-outlined-button:not(.mdc-button--outlined),
21-
.mat-mdc-fab,
22-
.mat-mdc-mini-fab,
2321
.mat-mdc-icon-button {
2422
@include cdk-high-contrast(active, off) {
2523
outline: solid 1px;

0 commit comments

Comments
 (0)