Skip to content

Commit 440b4ba

Browse files
Used Kbutton with right prop
1 parent 926b82d commit 440b4ba

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

contentcuration/contentcuration/frontend/shared/views/StudioChip.vue

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,19 @@
1212
</slot>
1313
</div>
1414

15-
<KIconButton
15+
<button
1616
v-if="close"
1717
class="studio-chip__close"
1818
:aria-label="removeLabel"
19-
icon="delete"
20-
color="#999999"
21-
appearance="flat-button"
2219
data-test="remove-chip"
2320
@click.stop="handleClose"
24-
/>
21+
>
22+
<KIcon
23+
icon="delete"
24+
class="studio-chip__icon"
25+
:color="$themePalette.grey.v_400"
26+
/>
27+
</button>
2528
</div>
2629
</div>
2730

@@ -71,7 +74,7 @@
7174
height: 24px;
7275
min-height: 24px;
7376
padding: 2px 8px;
74-
margin: 2px;
77+
margin: 2px 4px;
7578
font-size: 13px;
7679
white-space: nowrap;
7780
cursor: default;
@@ -94,11 +97,26 @@
9497
}
9598
9699
.studio-chip__close {
100+
position: relative;
101+
display: flex;
102+
align-items: center;
103+
justify-content: center;
97104
width: 16px;
98105
height: 16px;
99-
min-height: 16px;
100106
padding: 0;
101107
margin-top: 2px;
108+
margin-left: 2px;
109+
cursor: pointer;
110+
border-radius: 50%;
111+
}
112+
113+
.studio-chip__icon {
114+
position: absolute;
115+
top: 50%;
116+
left: 50%;
117+
font-size: 18px;
118+
transition: color 0.2s ease;
119+
transform: translate(-50%, -50%);
102120
}
103121
104122
</style>

0 commit comments

Comments
 (0)