Skip to content

Commit 42324b3

Browse files
committed
fix: hover color and border radius for remove icon
1 parent 77c0c6b commit 42324b3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Shared/Components/SelectPicker/common.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export const SelectPickerMenuList = ({
175175
<div className="py-4 cursor">{shouldRenderCustomOptions ? renderCustomOptions() : children}</div>
176176
{/* Added to the bottom of menu list to prevent from hiding when the menu is opened close to the bottom of the screen */}
177177
{!shouldRenderCustomOptions && renderMenuListFooter && (
178-
<div className=" dc__position-sticky dc__bottom-0 dc__bottom-radius-4 bcn-0">
178+
<div className="dc__position-sticky dc__bottom-0 dc__bottom-radius-4 bcn-0 dc__zi-2">
179179
{renderMenuListFooter()}
180180
</div>
181181
)}
@@ -192,7 +192,7 @@ export const SelectPickerMultiValueLabel = ({
192192
const iconToDisplay = isOptionValid ? data.startIcon || data.endIcon : <ICErrorExclamation />
193193

194194
return (
195-
<div className="flex dc__gap-4 mw-0">
195+
<div className="flex dc__gap-4 mw-0 dc__truncate">
196196
{iconToDisplay && (
197197
<div
198198
className={`dc__no-shrink ${selectProps.isMulti ? 'icon-dim-16' : 'icon-dim-20'} flex dc__fill-available-space`}

src/Shared/Components/SelectPicker/utils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export const getCommonSelectStyle = ({
167167
padding: '0',
168168
fontWeight: '400',
169169
...(state.selectProps.isMulti && {
170-
gap: '8px',
170+
gap: '6px',
171171
}),
172172
}),
173173
multiValue: (base, state) => {
@@ -202,8 +202,9 @@ export const getCommonSelectStyle = ({
202202
borderRadius: 0,
203203

204204
'&:hover': {
205-
backgroundColor: 'transparent',
205+
backgroundColor: 'var(--R100)',
206206
color: 'inherit',
207+
borderRadius: '2px',
207208

208209
'svg use': {
209210
fill: 'var(--R500)',

0 commit comments

Comments
 (0)