33/// /
44
55@import ' ~@react-md/theme/dist/color-palette' ;
6+ @import ' ~@react-md/theme/dist/functions' ;
67@import ' ~@react-md/utils/dist/variables' ;
78
89/// The additional amount of apdding to apply to the top of the select field
@@ -17,17 +18,55 @@ $rmd-select-native-multiple-padding: 0.75rem !default;
1718/// @type Number
1819$rmd-select-native-addon-top : 1rem !default ;
1920
21+ /// The elevation level for a temporary listbox. This should be a number between
22+ /// 0-24 as it generates a material design box shadow value.
23+ /// @type Number
24+ $rmd-listbox-elevation : 8 !default ;
25+
26+ /// The background color for a temporary listbox in light themes.
27+ ///
28+ /// @type Color
29+ /// @since 2.7.0
30+ $rmd-listbox-light-background-color : rmd-theme-var (surface ) !default ;
31+
32+ /// The background color for a temporary listbox in dark themes when the
33+ /// `$rmd-theme-dark-elevation` feature flag is also enabled.
34+ ///
35+ /// @see $rmd-theme-dark-elevation
36+ /// @require $rmd-theme-dark-elevation-colors
37+ /// @type Color
38+ /// @since 2.7.0
39+ $rmd-listbox-dark-elevation-background-color : map-get (
40+ $rmd-theme-dark-elevation-colors ,
41+ $rmd-listbox-elevation
42+ ) !default ;
43+
44+ /// The background color for a temporary listbox in dark themes.
45+ ///
46+ /// @type Color
47+ /// @since 2.7.0
48+ $rmd-listbox-dark-background-color : if (
49+ $rmd-theme-dark-elevation and $rmd-listbox-dark-elevation-background-color ,
50+ $rmd-listbox-dark-elevation-background-color ,
51+ rmd-theme-var (surface )
52+ ) !default ;
53+
54+ /// The base background color to apply to temporary listboxes.
55+ ///
56+ /// @type Color
57+ /// @since 2.7.0
58+ $rmd-listbox-background-color : if (
59+ $rmd-theme-light ,
60+ $rmd-listbox-light-background-color ,
61+ $rmd-listbox-dark-background-color
62+ ) !default ;
63+
2064/// The z-index to use for a temporary listbox.
2165///
2266/// @require $rmd-utils-temporary-element-z-index
2367/// @type Number
2468$rmd-listbox-z-index : $rmd-utils-temporary-element-z-index !default ;
2569
26- /// The elevation level for a temporary listbox. This should be a number between
27- /// 0-24 as it generates a material design box shadow value.
28- /// @type Number
29- $rmd-listbox-elevation : 8 !default ;
30-
3170/// The styles to apply when an option is focused with `aria-activedescendant`
3271/// behavior. This should be a map of styles that should be applied.
3372///
0 commit comments