Skip to content

Commit

Permalink
fix(comp:tree): incorrect style when node is selected (#1416)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzaijiang committed Jan 16, 2023
1 parent 4bf719d commit b112049
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/components/tree/style/index.less
Expand Up @@ -258,19 +258,19 @@
}
}

&-active:not(&-disabled) &-content {
&-active:not(&-disabled) .@{tree-node-prefix}-content {
background-color: @tree-node-hover-background-color;
}

&-selected:not(&-disabled) &-content {
&-selected:not(&-disabled) .@{tree-node-prefix}-content {
background-color: @tree-node-selected-background-color;
color: @tree-node-selected-color;
&:hover {
background-color: @tree-node-hover-background-color;
}
}

&-disabled &-content {
&-disabled .@{tree-node-prefix}-content {
color: @tree-node-disabled-color;
cursor: not-allowed;

Expand All @@ -284,11 +284,11 @@
box-shadow: 0 0 0 @tree-box-shadow-size @tree-box-shadow-color;
}

&-drop-before &-content {
&-drop-before .@{tree-node-prefix}-content {
box-shadow: 0 -@tree-box-shadow-size 0 0 @tree-box-shadow-color;
}

&-drop-after &-content {
&-drop-after .@{tree-node-prefix}-content {
box-shadow: 0 @tree-box-shadow-size 0 0 @tree-box-shadow-color;
}
}
Expand Down

0 comments on commit b112049

Please sign in to comment.