diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 0000000..29c8891 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,5 @@ +# Palette Journal + +## 2025-03-27 - Nesting Triggers with Radix UI Tooltips and Dropdown Menus +**Learning:** When adding tooltips to an element that is already a Radix UI trigger (like a `DropdownMenuTrigger` in the Topbar), the combination of triggers must explicitly use `asChild` for proper event delegation. +**Action:** Strictly use the `asChild` prop at each intermediate trigger layer down to the final interactive element: `` -> `` -> ` + + {/* Notifications */} + + + + + Notifications + - {/* User Menu */} - - - + + + User menu + + - - - - - My Account - - - Profile - - - Settings - - - - Logout - - - + My Account + + + Profile + + + Settings + + + + Logout + + + - {/* Settings Link */} - + {/* Settings Link */} + + + + + Settings + + )