Skip to content

Commit

Permalink
fix: 「组件」Transfer组件已选项缺少hover背景色
Browse files Browse the repository at this point in the history
  • Loading branch information
sqzhou committed Dec 6, 2023
1 parent 16d843f commit 274bf3b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/amis-ui/scss/components/form/_selection.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@
&.is-opened {
color: var(--Form-select-menu-onActive-color);
background: var(--Form-select-menu-onActive-bg);

&:hover {
background: var(--Form-select-menu-onHover-bg);
}
}

&.is-disabled {
Expand Down
17 changes: 14 additions & 3 deletions packages/amis-ui/scss/components/form/_transfer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,19 @@

&.#{$ns}Tree,
&.#{$ns}AssociatedSelection {

.#{$ns}Tree-itemLabel.is-checked:hover,
.#{$ns}Tree-itemLabel:hover {
.#{$ns}Tree-itemLabel-item > .#{$ns}Tree-itemText {
background-color: unset;
&:active {
background: var(--Form-select-menu-onHover-bg);

.#{$ns}Tree-itemLabel-item {
background: var(--Form-select-menu-onHover-bg);

> .#{$ns}Tree-itemText {
background-color: unset;
&:active {
background-color: unset;
}
}
}
}
Expand All @@ -221,6 +228,10 @@
}
}
}

.#{$ns}Tree-item:hover {
background: var(--Form-select-menu-onHover-bg);
}
}
}

Expand Down

0 comments on commit 274bf3b

Please sign in to comment.