Skip to content

Commit c668b07

Browse files
davidenketinayuangao
authored andcommitted
fixes #2917 (#2918)
Disabled buttons should not elevate on click.
1 parent fd8c379 commit c668b07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/button/_button-base.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ $mat-mini-fab-padding: 8px !default;
7474
transition: background $swift-ease-out-duration $swift-ease-out-timing-function,
7575
mat-elevation-transition-property-value();
7676

77-
&:active {
77+
&:not([disabled]):active {
7878
@include mat-elevation(8);
7979
}
8080

@@ -99,7 +99,7 @@ $mat-mini-fab-padding: 8px !default;
9999

100100
flex-shrink: 0;
101101

102-
&:active {
102+
&:not([disabled]):active {
103103
@include mat-elevation(12);
104104
}
105105

0 commit comments

Comments
 (0)