From 6464fdd4afbc0c1a9714cdf9bb74535c34f13240 Mon Sep 17 00:00:00 2001 From: Dennis Thiessen Date: Fri, 10 Jul 2026 23:20:04 +0200 Subject: [PATCH] Dropdown menus paint under later glass panels - portal them out The Signals > Setups filter dropdowns (Direction, Recommended Action) opened UNDER the panels below: glass containers use backdrop-filter, which creates a stacking context, so the menu's z-50 could never compete with later sibling panels regardless of value. The menu now portals to document.body with fixed positioning tracked against the trigger (re-measured on scroll/resize), and click-outside accounts for the portaled node. Applies to every Dropdown usage. Menu background also updated from the old green-tinted #151911 to the Horizon #14161f. Co-Authored-By: Claude Fable 5 --- frontend/src/components/ui/Dropdown.tsx | 40 +++++++++++++++++++++---- 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/ui/Dropdown.tsx b/frontend/src/components/ui/Dropdown.tsx index b41a0ec..3a5f742 100644 --- a/frontend/src/components/ui/Dropdown.tsx +++ b/frontend/src/components/ui/Dropdown.tsx @@ -1,4 +1,5 @@ import { useEffect, useRef, useState } from 'react'; +import { createPortal } from 'react-dom'; export interface DropdownOption { value: string; @@ -17,8 +18,12 @@ interface DropdownProps { /** * Fully dark, custom dropdown — replaces native