@@ -66,7 +66,9 @@ $mat-mini-fab-padding: 8px !default;
6666%mat-raised-button {
6767 @extend %mat-button-base ;
6868
69- @include mat-elevation (2 );
69+ & :not ([class *= ' #{$_mat-elevation-prefix}' ]) {
70+ @include mat-elevation (2 );
71+ }
7072
7173 // Force hardware acceleration.
7274 transform : translate3d (0 , 0 , 0 );
@@ -75,7 +77,7 @@ $mat-mini-fab-padding: 8px !default;
7577 transition : background $swift-ease-out-duration $swift-ease-out-timing-function ,
7678 mat-elevation-transition-property-value ();
7779
78- & :not ([disabled ]):active {
80+ & :not ([disabled ]):not ([ class *= ' #{$_mat-elevation-prefix} ' ]) : active {
7981 @include mat-elevation (8 );
8082 }
8183
@@ -88,7 +90,9 @@ $mat-mini-fab-padding: 8px !default;
8890@mixin mat-fab ($size , $padding ) {
8991 @extend %mat-raised-button ;
9092
91- @include mat-elevation (6 );
93+ & :not ([class *= ' #{$_mat-elevation-prefix}' ]) {
94+ @include mat-elevation (6 );
95+ }
9296
9397 // Reset the min-width from the button base.
9498 min-width : 0 ;
@@ -100,7 +104,7 @@ $mat-mini-fab-padding: 8px !default;
100104
101105 flex-shrink : 0 ;
102106
103- & :not ([disabled ]):active {
107+ & :not ([disabled ]):not ([ class *= ' #{$_mat-elevation-prefix} ' ]) : active {
104108 @include mat-elevation (12 );
105109 }
106110
0 commit comments