66@import ' ~@react-md/list/dist/functions' ;
77@import ' ~@react-md/utils/dist/variables' ;
88
9+ /// The elevation for menus. This should be a number from 0 to 24 (inclusive) as
10+ /// it gets passed to the `rmd-elevation` mixin.
11+ /// @type Number
12+ $rmd-menu-elevation : 8 !default ;
13+
14+ /// The background color for a menu in light themes.
15+ ///
16+ /// @type Color
17+ /// @since 2.7.0
18+ $rmd-menu-light-background-color : rmd-theme-var (surface ) !default ;
19+
20+ /// The background color for a menu in dark themes when the
21+ /// `$rmd-theme-dark-elevation` feature flag is also enabled.
22+ ///
23+ /// @see $rmd-theme-dark-elevation
24+ /// @see $rmd-menu-dark-background-color
25+ /// @require $rmd-theme-dark-elevation-colors
26+ /// @type Color
27+ /// @since 2.7.0
28+ $rmd-menu-dark-elevation-background-color : map-get (
29+ $rmd-theme-dark-elevation-colors ,
30+ $rmd-menu-elevation
31+ ) !default ;
32+
33+ /// The background color for a menu in dark themes.
34+ /// @type Color
35+ /// @since 2.7.0
36+ $rmd-menu-dark-background-color : if (
37+ $rmd-theme-dark-elevation and $rmd-menu-dark-elevation-background-color ,
38+ $rmd-menu-dark-elevation-background-color ,
39+ rmd-theme-var (surface )
40+ ) !default ;
41+
942/// The background color to use for menus
1043///
1144/// @require rmd-theme-var
1245/// @type Color
13- $rmd-menu-background-color : rmd-theme-var (surface ) !default ;
46+ $rmd-menu-background-color : if (
47+ $rmd-theme-light ,
48+ $rmd-menu-light-background-color ,
49+ $rmd-menu-dark-background-color
50+ ) !default ;
1451
1552/// The text color to use for menus
1653///
@@ -24,11 +61,6 @@ $rmd-menu-color: rmd-theme-var(on-surface) !default;
2461/// @type Number
2562$rmd-menu-z-index : $rmd-utils-temporary-element-z-index !default ;
2663
27- /// The elevation for menus. This should be a number from 0 to 24 (inclusive) as
28- /// it gets passed to the `rmd-elevation` mixin.
29- /// @type Number
30- $rmd-menu-elevation : 8 !default ;
31-
3264/// The min-width to apply to menus.
3365/// @type Number
3466$rmd-menu-min-width : 7rem !default ;
0 commit comments