Skip to content

Commit

Permalink
💄 Add @tree-node-hover-bg and @tree-node-selected-bg less variables
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHeer authored and afc163 committed Sep 3, 2019
1 parent 9dc0378 commit 849237b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions components/style/themes/default.less
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,8 @@
@tree-child-padding: 18px;
@tree-directory-selected-color: #fff;
@tree-directory-selected-bg: @primary-color;
@tree-node-hover-bg: @item-hover-bg;
@tree-node-selected-bg: @primary-2;

// Collapse
// ---
Expand Down
4 changes: 2 additions & 2 deletions components/tree/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@
cursor: pointer;
transition: all 0.3s;
&:hover {
background-color: @item-hover-bg;
background-color: @tree-node-hover-bg;
}
&.@{tree-prefix-cls}-node-selected {
background-color: @primary-2;
background-color: @tree-node-selected-bg;
}
}
span {
Expand Down

0 comments on commit 849237b

Please sign in to comment.