Skip to content

Commit

Permalink
fix(pro:tag-select): modify tag edit panel style (#1904)
Browse files Browse the repository at this point in the history
1. add divider under delete button
2. selected color item hover color doesn't change
3. add hover and active bg color to delete button
  • Loading branch information
sallerli1 committed Apr 24, 2024
1 parent 2aebaec commit 3a87226
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/pro/tag-select/src/content/TagDataEditPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ export default defineComponent({
<IxIcon class={`${prefixCls}-delete-icon`} name="delete" />
<span class={`${prefixCls}-delete-label`}>{locale.remove}</span>
</div>
<div class={`${prefixCls}-divider`}>
<div class={`${prefixCls}-divider-line`}></div>
</div>
<div class={`${prefixCls}-colors`}>
{mergedTagSelectColors.value.map(color => renderColorItem(`${prefixCls}-colors`, color))}
</div>
Expand Down
22 changes: 20 additions & 2 deletions packages/pro/tag-select/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,24 @@
color: var(--ix-color-icon);
margin-right: var(--ix-margin-size-sm);
}

&:hover {
background-color: var(--ix-color-container-bg-hover);
}
&:active,
&:hover:active {
background-color: var(--ix-color-container-bg-active);
}
}
&-divider {
width: 100%;
margin: var(--ix-margin-size-xs) 0;
padding: 0 var(--ix-padding-size-sm);
&-line {
width: calc(100%);
height: var(--ix-line-width);
background-color: var(--ix-color-separator);
}
}
&-colors {
display: flex;
Expand All @@ -115,8 +133,8 @@
padding: 0 var(--ix-padding-size-md);
display: flex;
align-items: center;
&:hover,
&-selected:hover {
cursor: pointer;
&:not(&-selected):hover {
background-color: var(--ix-color-container-bg-hover);
}
&-selected {
Expand Down

0 comments on commit 3a87226

Please sign in to comment.