adobe / adobe/react-spectrum

Differentiate Menu Popover opened via contextMenu trigger

Open
#10,436 2 comments 1 reaction 0 assignees View on GitHub
has workaround MenuTrigger Popover
Dominant language
TypeScript
Stars
15.9k
Forks
1.6k
Avg merge
3d 9m
Merged PRs (30d)
59

Description

### Provide a general summary of the feature here

Currently I'm setting a margin on menu's Popover via CSS. The value depends on whether there's OverlayArrow.

When trigger is `contextMenu`, the margin should be 0. However, there's no way to tell from CSS.

### 🤔 Expected Behavior?

A way to differentiate Menu Popover's trigger.

### 😯 Current Behavior

No way to differentiate Menu Popover's trigger.

### 💁 Possible Solution

_No response_

### 🔦 Context

NA

### 💻 Examples

_No response_

### 🧢 Your Company/Team

_No response_

### 🕷 Tracking Issue

_No response_

Contributor guide

Open the contributing guide

Research direction

Start at the Menu Popover entry point and trace how the contextMenu trigger is passed through the menu components and exposed to styling. Compare the contextMenu and other trigger paths; the work is done when CSS can reliably distinguish the contextMenu popover and apply the requested margin behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.