From 90000c64af6dd083a06807c3d1bb721d23f22119 Mon Sep 17 00:00:00 2001 From: ahmadogo Date: Mon, 1 Jun 2026 09:19:09 +0100 Subject: [PATCH 1/2] bug Tooltip System : YouTube Integration --- src/app/tooltip-demo/page.tsx | 51 +++++++++++++---- src/components/ui/Tooltip.tsx | 58 +++++++++++++++---- src/components/ui/__tests__/Tooltip.test.tsx | 59 +++++++++++++++----- 3 files changed, 130 insertions(+), 38 deletions(-) diff --git a/src/app/tooltip-demo/page.tsx b/src/app/tooltip-demo/page.tsx index 4ca0d90e..ac623e4c 100644 --- a/src/app/tooltip-demo/page.tsx +++ b/src/app/tooltip-demo/page.tsx @@ -26,9 +26,7 @@ export default function TooltipDemoPage() { return (
-

- Tooltip System Demo -

+

Tooltip System Demo

Hover or focus the buttons below to see tooltips. Anomaly detection is active — rapidly toggling a tooltip or keeping it open for >10 s will log an anomaly. @@ -63,9 +61,7 @@ export default function TooltipDemoPage() { {/* Placement showcase */}

-

- Placements -

+

Placements

{PLACEMENTS.map((placement) => ( - Tip: This tooltip supports{' '} - rich React content. + Tip: This tooltip supports rich React content. } placement="right" @@ -118,6 +113,42 @@ export default function TooltipDemoPage() {
+ {/* YouTube preview tooltip */} +
+

+ YouTube Preview +

+ +