|
23 | 23 | /// @param {Color} foreground-disabled [null] - The color used for the content of the disabled tree node. |
24 | 24 | /// @param {Color} drop-area-color [null] - The background color used for the tree node drop aria. |
25 | 25 | /// @param {Color} border-color [null] - The outline shadow color used for tree node in focus state. |
| 26 | +/// @param {Color} hover-color [null] - The background color used for the tree node on hover. |
| 27 | +/// @param {Color} hover-selected-color [null] - The background color used for the selected tree node on hover. |
26 | 28 | /// @requires $light-material-schema |
27 | 29 | /// |
28 | 30 | /// @example scss Change the tree background |
|
43 | 45 | $foreground-disabled: null, |
44 | 46 | $drop-area-color: null, |
45 | 47 | $border-color: null, |
| 48 | + $hover-color: null, |
| 49 | + $hover-selected-color: null, |
46 | 50 | $size: null, |
47 | 51 | ) { |
48 | 52 | $name: 'igx-tree'; |
|
89 | 93 | foreground-disabled: $foreground-disabled, |
90 | 94 | drop-area-color: $drop-area-color, |
91 | 95 | border-color: $border-color, |
| 96 | + hover-color: $hover-color, |
| 97 | + hover-selected-color: $hover-selected-color, |
92 | 98 | _meta: map.merge(if($meta, $meta, ()), ( |
93 | 99 | variant: map.get($schema, '_meta', 'theme') |
94 | 100 | )), |
|
219 | 225 | %node-wrapper--selected { |
220 | 226 | background: var-get($theme, 'background-selected'); |
221 | 227 | color: var-get($theme, 'foreground-selected'); |
| 228 | + |
| 229 | + &:hover { |
| 230 | + &::after { |
| 231 | + background: var-get($theme, 'hover-selected-color'); |
| 232 | + } |
| 233 | + } |
222 | 234 | } |
223 | 235 |
|
224 | 236 | %node-wrapper--active { |
|
0 commit comments