Skip to content

Commit

Permalink
enhance(select): enhance selected state style for options
Browse files Browse the repository at this point in the history
  • Loading branch information
oljc committed Jan 2, 2024
1 parent 315518e commit 92d6f9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/web-vue/components/select/option.vue
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ export default defineComponent({
prefixCls,
{
[`${prefixCls}-disabled`]: props.disabled,
[`${prefixCls}-selected`]: isSelected.value,
[`${prefixCls}-active`]: isActive.value,
[`${prefixCls}-multiple`]: selectCtx?.multiple,
},
Expand Down
7 changes: 7 additions & 0 deletions packages/web-vue/components/select/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@
justify-content: space-between;
}

// selected
&-selected {
color: @select-popup-option-color-text_selected;
font-weight: @select-popup-option-font-weight_selected;
background-color: @select-popup-option-color-bg_selected;
}

// hover
&-active,
&:not(&-disabled):hover {
Expand Down

0 comments on commit 92d6f9a

Please sign in to comment.