From c204e536cbbffd152d6a171ed4aab5dfdb9fdc5c Mon Sep 17 00:00:00 2001 From: Georgii Lobko <47106899+georgylobko@users.noreply.github.com> Date: Mon, 27 Jan 2025 13:58:28 +0100 Subject: [PATCH 1/4] revert: "chore: Underline styles for popover text trigger (#3060)" (#3223) --- 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, 6 insertions(+), 34 deletions(-) diff --git a/pages/popover/text-wrap.page.tsx b/pages/popover/text-wrap.page.tsx index e46a4b7bb1..1e21a81c90 100644 --- a/pages/popover/text-wrap.page.tsx +++ b/pages/popover/text-wrap.page.tsx @@ -26,7 +26,6 @@ const triggerPermutations = createPermutations { - if (['text', 'text-inline'].includes(triggerType)) { + if (triggerType === 'text') { triggerRef.current?.focus(); } else { triggerRef.current && getFirstFocusable(triggerRef.current)?.focus(); @@ -198,7 +198,7 @@ function InternalPopover( }); }} > - {['text', 'text-inline'].includes(triggerType) ? ( + {triggerType === 'text' ? (