From bcd5b519e508566c7e6ff48b574858a6a72c8703 Mon Sep 17 00:00:00 2001 From: Pranita Date: Wed, 22 Jan 2025 11:14:47 +0530 Subject: [PATCH] fix: tooltip logic for non edit mode --- .../Tag/TagsContainerV2/TagsContainerV2.tsx | 2 ++ .../Tag/TagsV1/TagsV1.component.tsx | 21 ++++++++++++++++--- .../components/Tag/TagsV1/TagsV1.interface.ts | 1 + 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsContainerV2/TagsContainerV2.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsContainerV2/TagsContainerV2.tsx index de06003cf9fa..704d36621e14 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsContainerV2/TagsContainerV2.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsContainerV2/TagsContainerV2.tsx @@ -161,6 +161,7 @@ const TagsContainerV2 = ({ showAddTagButton ? ( { const color = useMemo( () => (isVersionPage ? undefined : tag.style?.color), @@ -184,7 +186,20 @@ const TagsV1 = ({ } return ( - {tagChip} + <> + {isEditTags ? ( + {tagChip} + ) : ( + + {tagChip} + + )} + ); }; diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsV1/TagsV1.interface.ts b/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsV1/TagsV1.interface.ts index e66686e9c7fe..d73d707f8caf 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsV1/TagsV1.interface.ts +++ b/openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsV1/TagsV1.interface.ts @@ -31,4 +31,5 @@ export type TagsV1Props = { tooltipOverride?: string; tagType?: TagSource; size?: SelectProps['size']; + isEditTags?: boolean; };