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>
This commit is contained in:
parent
dd86d0964d
commit
8f623c3bdf
14 changed files with 249 additions and 177 deletions
|
@ -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>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue