From 34cd820aea6133d96a34949e3681dfc046551aa3 Mon Sep 17 00:00:00 2001 From: Georgii Lobko <47106899+georgylobko@users.noreply.github.com> Date: Tue, 28 Jan 2025 09:35:20 +0100 Subject: [PATCH] feat: Popover text inline trigger (#3224) --- pages/popover/text-wrap.page.tsx | 1 + .../__snapshots__/documenter.test.ts.snap | 4 ++- src/popover/interfaces.ts | 5 ++-- src/popover/internal.tsx | 4 +-- src/popover/styles.scss | 26 ++++++++++++++++++- 5 files changed, 34 insertions(+), 6 deletions(-) diff --git a/pages/popover/text-wrap.page.tsx b/pages/popover/text-wrap.page.tsx index 1e21a81c90..e46a4b7bb1 100644 --- a/pages/popover/text-wrap.page.tsx +++ b/pages/popover/text-wrap.page.tsx @@ -26,6 +26,7 @@ const triggerPermutations = createPermutations { - if (triggerType === 'text') { + if (['text', 'text-inline'].includes(triggerType)) { triggerRef.current?.focus(); } else { triggerRef.current && getFirstFocusable(triggerRef.current)?.focus(); @@ -198,7 +198,7 @@ function InternalPopover( }); }} > - {triggerType === 'text' ? ( + {['text', 'text-inline'].includes(triggerType) ? (