Skip to content

Commit 1b790cf

Browse files
committed
feat: SelectPicker - add tooltip for truncated option
1 parent 6467973 commit 1b790cf

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Shared/Components/SelectPicker/common.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,13 @@ export const SelectPickerOption = <OptionValue, IsMulti extends boolean>({
200200
<div className="dc__no-shrink icon-dim-16 flex dc__fill-available-space">{startIcon}</div>
201201
)}
202202
<div className="flex-grow-1">
203-
<h4 className={`m-0 fs-13 ${isCreatableOption ? 'cb-5' : 'cn-9'} fw-4 lh-20 dc__truncate`}>
204-
{label}
205-
</h4>
203+
<Tooltip content={label} placement="right">
204+
<h4
205+
className={`m-0 fs-13 ${isCreatableOption ? 'cb-5' : 'cn-9'} fw-4 lh-20 dc__truncate`}
206+
>
207+
{label}
208+
</h4>
209+
</Tooltip>
206210
{/* Add support for custom ellipsis if required */}
207211
{showDescription &&
208212
(typeof description === 'string' ? (

0 commit comments

Comments
 (0)