Skip to content

Commit

Permalink
feat(tag): improve close icon interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
gweesin committed Mar 3, 2025
1 parent e3bf5ad commit 383a341
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/theme/src/tag/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
font-size: var(--tv-Tag-close-icon-size);
fill: var(--tv-Tag-close-icon-color);
margin-left: var(--tv-Tag-close-icon-margin-left);
cursor: pointer;

&:hover {
fill: var(--tv-Tag-close-icon-color-hover);
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/tag/src/pc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default defineComponent({
value || (slots.default && slots.default()) ? (
<span data-tag="tiny-tag" class={classes} style={styles} onClick={handleClick}>
{value ? <span>{value}</span> : slots.default && slots.default()}
{closable && <icon-close class="tiny-svg-size tiny-tag__close " onClick={handleClose}></icon-close>}
{closable && <icon-close class="tiny-svg-size tiny-tag__close" onClick={handleClose}></icon-close>}
</span>
) : (
<span></span>
Expand Down

0 comments on commit 383a341

Please sign in to comment.