11@import ' @material/button/mixins' ;
22@import ' ../mdc-helpers/mdc-helpers' ;
33
4- $_mat-button-ripple-opacity : 0.1 ;
5-
64@mixin mat-button-theme-mdc ($theme ) {
75 $primary : mat-color (map-get ($theme , primary ));
86 $accent : mat-color (map-get ($theme , accent ));
@@ -11,24 +9,10 @@ $_mat-button-ripple-opacity: 0.1;
119 @include mat-using-mdc-theme ($theme ) {
1210 @include mdc-button-without-ripple ($query : $mat-theme-styles-query );
1311 }
14-
15- .mat-mdc-button {
16- // The ripple element is created from the RippleRenderer rather than the MDC ripple, so it is
17- // necessary to provide the color and opacity styling manually.
18- .mat-ripple-element {
19- opacity : $_mat-button-ripple-opacity ;
20- background-color : currentColor ;
21- }
22- }
2312}
2413
2514@mixin mat-button-typography-mdc ($config ) {
26- @if config {
27- @include mat-using-mdc-typography ($config ) {
28- @include mdc-button-without-ripple ($query : $mat-typography-styles-query );
29- }
30- }
31- @else {
15+ @include mat-using-mdc-typography ($config ) {
3216 @include mdc-button-without-ripple ($query : $mat-typography-styles-query );
3317 }
3418}
@@ -37,24 +21,10 @@ $_mat-button-ripple-opacity: 0.1;
3721 @include mat-using-mdc-theme ($theme ) {
3822 @include mdc-fab-without-ripple ($query : $mat-theme-styles-query );
3923 }
40-
41- .mat-mdc-button {
42- // The ripple element is created from the RippleRenderer rather than the MDC ripple, so it is
43- // necessary to provide the color and opacity styling manually.
44- .mat-ripple-element {
45- opacity : $_mat-button-ripple-opacity ;
46- background-color : currentColor ;
47- }
48- }
4924}
5025
5126@mixin mat-fab-typography-mdc ($config ) {
52- @if config {
53- @include mat-using-mdc-typography ($config ) {
54- @include mdc-fab-without-ripple ($query : $mat-typography-styles-query );
55- }
56- }
57- @else {
27+ @include mat-using-mdc-typography ($config ) {
5828 @include mdc-fab-without-ripple ($query : $mat-typography-styles-query );
5929 }
6030}
@@ -63,24 +33,10 @@ $_mat-button-ripple-opacity: 0.1;
6333 @include mat-using-mdc-theme ($theme ) {
6434 @include mdc-icon-button-without-ripple ($query : $mat-theme-styles-query );
6535 }
66-
67- .mat-mdc-button {
68- // The ripple element is created from the RippleRenderer rather than the MDC ripple, so it is
69- // necessary to provide the color and opacity styling manually.
70- .mat-ripple-element {
71- opacity : $_mat-button-ripple-opacity ;
72- background-color : currentColor ;
73- }
74- }
7536}
7637
7738@mixin mat-icon-button-typography-mdc ($config ) {
78- @if config {
79- @include mat-using-mdc-typography ($config ) {
80- @include mdc-icon-button-without-ripple ($query : $mat-typography-styles-query );
81- }
82- }
83- @else {
84- @include mdc-icon-button-without-ripple ($query : $mat-typography-styles-query );
39+ @include mat-using-mdc-typography ($config ) {
40+ @include mdc-icon-without-ripple ($query : $mat-typography-styles-query );
8541 }
8642}
0 commit comments