77// Selector '.md3-*' should only be used in this project.
88
99@use ' sass:map' ;
10- @use ' ../../elevationold /lib/elevation-theme ' ;
10+ @use ' ../../elevation /lib/elevation' ;
1111@use ' ../../sass/theme' ;
1212@use ' ./md-comp-menu-surface' ;
1313
@@ -23,13 +23,15 @@ $_deceleration-curve-timing-function: cubic-bezier(0, 0, 0.2, 1) !default;
2323
2424@mixin theme ($tokens ) {
2525 $tokens : theme .validate-theme (md-comp-menu-surface .values (), $tokens );
26+ $tokens : elevation .resolve-tokens ($tokens , ' container-elevation' );
2627 $tokens : theme .create-theme-vars ($tokens , $_custom-property-prefix );
2728
2829 @include theme .emit-theme-vars ($tokens );
2930}
3031
3132@mixin styles () {
3233 $tokens : md-comp-menu-surface .values ();
34+ $tokens : elevation .resolve-tokens ($tokens , ' container-elevation' );
3335 $tokens : theme .create-theme-vars ($tokens , $_custom-property-prefix );
3436
3537 :host {
@@ -57,13 +59,15 @@ $_deceleration-curve-timing-function: cubic-bezier(0, 0, 0.2, 1) !default;
5759 will-change : transform , opacity ;
5860 z-index : $_z-index ;
5961
60- @include elevation-theme .theme-styles (
62+ @include elevation .theme (
6163 (
62- shadow : var (--_container-elevation-shadow ),
64+ level : var (--_container-elevation ),
65+ shadow- color: var (--_container-shadow-color ),
66+ surface- tint- color: var (--_container-surface-tint-layer-color ),
6367 )
6468 );
6569
66- .md3 -elevation-overlay {
70+ md -elevation {
6771 z-index : 0 ;
6872 }
6973
0 commit comments