File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 8585 background : transparent ;
8686
8787 @include _mat-button-theme-color ($theme , ' color' );
88- @include _mat-button-ripple-color ($theme , default , 0.1 );
8988 }
9089
9190 .mat-raised-button , .mat-fab , .mat-mini-fab {
9594
9695 @include _mat-button-theme-color ($theme , ' color' , default- contrast);
9796 @include _mat-button-theme-color ($theme , ' background-color' );
97+
98+ // Add ripple effect with contrast color to buttons that don't have a focus overlay.
9899 @include _mat-button-ripple-color ($theme , default- contrast);
99100 }
101+
102+ // Add ripple effect with default color to the flat button, which doesn't have a focus overlay.
103+ .mat-button {
104+ @include _mat-button-ripple-color ($theme , default , 0.1 );
105+ }
106+
107+ // Add ripple effect with default color to the icon button. Ripple color needs to be stronger
108+ // since the icon button doesn't have a focus overlay.
109+ .mat-icon-button {
110+ @include _mat-button-ripple-color ($theme , default );
111+ }
100112
101113 // TODO(devversion): The color class accent should be just set from TS code. No need for this.
102114 .mat-fab , .mat-mini-fab {
You can’t perform that action at this time.
0 commit comments