Skip to content

Commit 31cc0db

Browse files
committed
fix(TMC-29525): inlineedit tooltip position on subheader
1 parent 2fdd74c commit 31cc0db

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/thick-peas-rest.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@talend/design-system': patch
3+
---
4+
5+
fix: Change InlineEdit tooltip position on buttons to prevent z-index issues depending on implementation

packages/design-system/src/components/InlineEditing/Primitives/InlineEditingPrimitive.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ const InlineEditingPrimitive = forwardRef(
267267
data-test={`${dataTest ? `${dataTest}.` : ''}inlineediting.button.cancel`}
268268
data-testid={`${dataTestId ? `${dataTestId}.` : ''}inlineediting.button.cancel`}
269269
size="XS"
270+
tooltipPlacement="bottom"
270271
>
271272
{t('INLINE_EDITING_CANCEL', 'Cancel')}
272273
</ButtonIcon>
@@ -277,6 +278,7 @@ const InlineEditingPrimitive = forwardRef(
277278
data-testid={`${dataTestId ? `${dataTestId}.` : ''}inlineediting.button.submit`}
278279
{...getDataAttrFromProps(rest)}
279280
size="XS"
281+
tooltipPlacement="bottom"
280282
>
281283
{t('INLINE_EDITING_SUBMIT', 'Submit')}
282284
</ButtonIcon>
@@ -305,6 +307,7 @@ const InlineEditingPrimitive = forwardRef(
305307
icon="pencil"
306308
disabled={loading}
307309
size="XS"
310+
tooltipPlacement="bottom"
308311
>
309312
{t('INLINE_EDITING_EDIT', 'Edit')}
310313
</ButtonIcon>

0 commit comments

Comments
 (0)