[context menu] Correct generated API metadata - #5523
Conversation
commit: |
Bundle size
PerformanceTotal duration: 1,130.70 ms 🔺+201.38 ms(+21.7%) | Renders: 92 (+0) | Paint: 1,877.72 ms 🔺+332.80 ms(+21.5%)
…and 6 more (+4 within noise) — details Metric alarms
…and 7 more metric alarms — details Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
63850bc to
b78a7cd
Compare
b78a7cd to
9655d1b
Compare
8702a1f to
016562b
Compare
| popupOpen = CommonTriggerDataAttributes.popupOpen, | ||
| /** | ||
| * Present when the trigger is pressed. | ||
| * Present when the corresponding context menu is open. |
There was a problem hiding this comment.
Currently both popupOpen and pressed are true when the popup is open i.e. pressed is the same as popupOpen in the current implementation.
Instead of changing the wording, we might want to fix the behavior so pressed means pressed.
cc @jjenzz
| /** | ||
| * @ignore | ||
| * @deprecated This prop has no effect on Context Menu. | ||
| */ | ||
| closeParentOnEsc?: Menu.Root.Props['closeParentOnEsc'] | undefined; |
There was a problem hiding this comment.
This seems a legit approach but let me know if we should introduce the deprecation in another PR.
| /** | ||
| * @ignore | ||
| * @deprecated This prop has no effect on Context Menu. | ||
| */ | ||
| positionMethod?: MenuPositionerProps['positionMethod'] | undefined; |
There was a problem hiding this comment.
Changes
Positionerdocumentation and type facade while retaining the shared Menu runtime implementationContextMenu.Positioner.Statein render callback signaturessideandaligndefaults at the shared Menu API surfaceSubmenuTrigger.openOnHoverdefaultWhy
The Context Menu API generator reused the Menu Positioner symbol, so it documented Menu defaults such as trigger anchoring, absolute positioning, and center alignment instead of Context Menu's pointer anchor, fixed positioning, and start alignment.
The facade overrides metadata only where Context Menu behavior or terminology differs. Shared runtime behavior, state, collision behavior, data attributes, and CSS variables continue to come from their canonical declarations.
This is a documentation and type-surface correction; it does not change runtime positioning behavior.