microsoft / microsoft/fluentui

[Feature]: react-positioning: provide a way to position contextmenu on keyboard event

Open
#28,735 5 comments 0 reactions 1 assignee View on GitHub

@bsunderhus is already working on this.

Since Aug 4, 2023.

Component: Menu Fluent UI react-components (v9) Resolution: Soft Close
Dominant language
TypeScript
Stars
20.3k
Forks
2.9k
Avg merge
2d 9h
Merged PRs (30d)
46

Description

There's currently no way to decide the position on which a contextmenu will appear, it goes to the middle of the element according to createVirtualElementFromClick :

https://github.com/microsoft/fluentui/blob/5ed22515a7542b432ed694f22606ac3718d501cb/packages/react-components/react-positioning/src/createVirtualElementFromClick.ts#L7-L24

Feature request

Find a way to adjust the positioning of the contextmenu according to the positioning property provided by the user

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.