Skip to content

Commit 29a8a3b

Browse files
authored
Merge pull request #482 from devtron-labs/feat/select-picker-option-tooltip
feat: SelectPicker - add tooltip for truncated option
2 parents 6467973 + 338e40b commit 29a8a3b

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.3.5-beta-1",
3+
"version": "1.3.5-beta-3",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

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)