3
3
/// /
4
4
5
5
@import ' ~@react-md/theme/dist/color-palette' ;
6
+ @import ' ~@react-md/theme/dist/functions' ;
6
7
@import ' ~@react-md/utils/dist/variables' ;
7
8
8
9
/// 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;
17
18
/// @type Number
18
19
$rmd-select-native-addon-top : 1rem !default ;
19
20
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
+
20
64
/// The z-index to use for a temporary listbox.
21
65
///
22
66
/// @require $rmd-utils-temporary-element-z-index
23
67
/// @type Number
24
68
$rmd-listbox-z-index : $rmd-utils-temporary-element-z-index !default ;
25
69
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
-
31
70
/// The styles to apply when an option is focused with `aria-activedescendant`
32
71
/// behavior. This should be a map of styles that should be applied.
33
72
///
0 commit comments