diff options
author | Eric Bailey <git@esb.lol> | 2024-03-08 14:45:59 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 14:45:59 -0600 |
commit | 8f623c3bdf8dbbdc4c4f10f19b0b2c134b4160cb (patch) | |
tree | 40aee1909e199d18b95d44eb72eb91fc1648912a /src/components/Menu | |
parent | dd86d0964d391e9748843aa1a6400d73c3a6d9f9 (diff) | |
download | voidsky-8f623c3bdf8dbbdc4c4f10f19b0b2c134b4160cb.tar.zst |
Refactor `PostDropdownBtn` to use new `Menu` (#3112)
* Refactor PostDropdownBtn (cherry picked from commit 0adf6cb75e3d4b7c1630cf6153c0d7e289e1b859) * Update icons (cherry picked from commit ac89ef9b28721c00736b1388455f3f5f092de0ad) * Port over fixes * fix scrollbar disappearing * Try CSS solution * Disable arrow for now --------- Co-authored-by: Hailey <me@haileyok.com>
Diffstat (limited to 'src/components/Menu')
-rw-r--r-- | src/components/Menu/index.web.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/Menu/index.web.tsx b/src/components/Menu/index.web.tsx index ca2e40566..054e51b01 100644 --- a/src/components/Menu/index.web.tsx +++ b/src/components/Menu/index.web.tsx @@ -92,10 +92,8 @@ export function Trigger({children, label, style}: TriggerProps) { accessibilityLabel={label} onFocus={onFocus} onBlur={onBlur} - style={flatten([style, web({outline: 0})])} - onPointerDown={() => { - control.open() - }} + style={flatten([style, focused && web({outline: 0})])} + onPointerDown={() => control.open()} {...web({ onMouseEnter, onMouseLeave, @@ -131,6 +129,7 @@ export function Outer({children}: React.PropsWithChildren<{}>) { {children} </View> + {/* Disabled until we can fix positioning <DropdownMenu.Arrow className="DropdownMenuArrow" fill={ @@ -138,6 +137,7 @@ export function Outer({children}: React.PropsWithChildren<{}>) { .backgroundColor } /> + */} </DropdownMenu.Content> </DropdownMenu.Portal> ) |