Skip to content

Commit 588fecd

Browse files
authored
fix(tree): Consume new hover-selected-color form schema, expose missing hover-colors to the user. (#13700)
1 parent 04b6200 commit 588fecd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

projects/igniteui-angular/src/lib/core/styles/components/tree/_tree-theme.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
/// @param {Color} foreground-disabled [null] - The color used for the content of the disabled tree node.
2424
/// @param {Color} drop-area-color [null] - The background color used for the tree node drop aria.
2525
/// @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.
2628
/// @requires $light-material-schema
2729
///
2830
/// @example scss Change the tree background
@@ -43,6 +45,8 @@
4345
$foreground-disabled: null,
4446
$drop-area-color: null,
4547
$border-color: null,
48+
$hover-color: null,
49+
$hover-selected-color: null,
4650
$size: null,
4751
) {
4852
$name: 'igx-tree';
@@ -89,6 +93,8 @@
8993
foreground-disabled: $foreground-disabled,
9094
drop-area-color: $drop-area-color,
9195
border-color: $border-color,
96+
hover-color: $hover-color,
97+
hover-selected-color: $hover-selected-color,
9298
_meta: map.merge(if($meta, $meta, ()), (
9399
variant: map.get($schema, '_meta', 'theme')
94100
)),
@@ -219,6 +225,12 @@
219225
%node-wrapper--selected {
220226
background: var-get($theme, 'background-selected');
221227
color: var-get($theme, 'foreground-selected');
228+
229+
&:hover {
230+
&::after {
231+
background: var-get($theme, 'hover-selected-color');
232+
}
233+
}
222234
}
223235

224236
%node-wrapper--active {

0 commit comments

Comments
 (0)