Skip to content

Commit abf00c9

Browse files
committed
fix: add tooltip on filter chip truncation
1 parent d85eb0d commit abf00c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Shared/Components/FilterChips/FilterChips.component.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
import { ReactComponent as CloseIcon } from '../../../Assets/Icon/ic-close.svg'
18-
import { noop } from '../../../Common'
18+
import { noop, Tooltip } from '../../../Common'
1919
import { FilterChipProps, FilterChipsProps } from './types'
2020

2121
const FilterChip = ({
@@ -45,7 +45,9 @@ const FilterChip = ({
4545
<span className="dc__divider h-24" />
4646
</>
4747
)}
48-
<span className="dc__ellipsis-right">{valueToDisplay}</span>
48+
<Tooltip content={valueToDisplay} showOnTruncate>
49+
<span className="dc__ellipsis-right dc__word-break dc__mxw-150">{valueToDisplay}</span>
50+
</Tooltip>
4951
{showRemoveIcon && (
5052
<button
5153
type="button"

0 commit comments

Comments
 (0)