From cd56268f1e10938a5e54993aab7f81829f63e1b4 Mon Sep 17 00:00:00 2001 From: audreyostrom Date: Thu, 5 Dec 2024 09:48:45 -0800 Subject: [PATCH] Fix: Tooltip Not Appearing for "Add Section Title" (#144) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # [SRBT-349] Fix: Tooltip Not Appearing for "Add Section Title" **Changes** - Refactored the SectionTitleIcon to be wrapped in a `div` instead of an `svg`. I also refactored the Tooltip Trigger for section titles to be a button. Apparently, Tooltips can only to appear on [buttons](https://github.com/radix-ui/primitives/issues/955#issuecomment-960610209), or elements that require a click / pointer-down interaction – from what I've gathered on the documentation beyond this specific GitHub issue. # Screenshots Screenshot 2024-12-03 at 8 57 21 AM --------- Co-authored-by: Audrey Ostrom --- .../profile/widgets/add-widgets.tsx | 112 +++++++++--------- 1 file changed, 57 insertions(+), 55 deletions(-) diff --git a/src/components/profile/widgets/add-widgets.tsx b/src/components/profile/widgets/add-widgets.tsx index 3a895038..c0028747 100644 --- a/src/components/profile/widgets/add-widgets.tsx +++ b/src/components/profile/widgets/add-widgets.tsx @@ -204,20 +204,24 @@ export const AddWidgets: React.FC = ({
- - {featureFlags.sectionTitles && ( + {featureFlags.sectionTitles && ( + - + disabled={loading} + > + + Add section title - )} + + )} +