1- @use ' sass:map' ;
21@use ' sass:meta' ;
3- @use ' @material/ripple/ripple-theme' as mdc-ripple-theme ;
42@use ' ../../token-utils' ;
53@use ' ../../../theming/theming' ;
64@use ' ../../../theming/inspection' ;
@@ -19,10 +17,6 @@ $prefix: (mat, fab-small);
1917// Tokens that can be configured through Angular Material's color theming API.
2018@function get-color-tokens ($theme ) {
2119 $is-dark : inspection .get-theme-type ($theme ) == dark ;
22- $ripple-opacities : if ($is-dark ,
23- mdc-ripple-theme .$light-ink-opacities ,
24- mdc-ripple-theme .$dark-ink-opacities
25- );
2620
2721 @return (
2822 // Color of icons and text projected into a FAB.
@@ -38,13 +32,13 @@ $prefix: (mat, fab-small);
3832 ripple- color: inspection .get-theme-color ($theme , foreground , base , 0.1 ),
3933
4034 // Opacity of the ripple when the button is hovered.
41- hover- state- layer- opacity: map . get ( $ripple-opacities , hover ),
35+ hover- state- layer- opacity: if ( $is-dark , 0.08 , 0.04 ),
4236
4337 // Opacity of the ripple when the button is focused.
44- focus- state- layer- opacity: map . get ( $ripple-opacities , focus ),
38+ focus- state- layer- opacity: if ( $is-dark , 0.24 , 0.12 ),
4539
4640 // Opacity of the ripple when the button is pressed.
47- pressed- state- layer- opacity: map . get ( $ripple-opacities , press ),
41+ pressed- state- layer- opacity: if ( $is-dark , 0.24 , 0.12 ),
4842
4943 // MDC doesn't have tokens for disabled FABs so we need to implemented them ourselves.
5044 // Background color of the container when the FAB is disabled.
0 commit comments