Skip to content

Commit b31e6e1

Browse files
committed
Use correct focus overlay for raised buttons
- Only uses themed overlay for flat buttons and flat icon buttons - Dark overlay applies to all other buttons - Fixes #3820
1 parent 038a337 commit b31e6e1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/lib/button/_button-theme.scss

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,8 @@
7474
$background: map-get($theme, background);
7575
$foreground: map-get($theme, foreground);
7676

77-
.mat-button, .mat-icon-button, .mat-raised-button, .mat-fab, .mat-mini-fab {
78-
// Appy color to focus overlay.
79-
// The focus overlay will be visible when any button type is focused or when
80-
// flat buttons or icon buttons are hovered.
81-
@include _mat-button-focus-color($theme);
82-
}
83-
8477
.mat-button, .mat-icon-button {
78+
@include _mat-button-focus-color($theme);
8579
@include _mat-button-theme-color($theme, 'color');
8680
background: transparent;
8781
}

0 commit comments

Comments
 (0)