[carbon-components-react] Adding "auto" direction to OverflowMenu
See original GitHub issueSummary
When using the <OverflowMenu>
component, there are times where the direction of the opened menu causes unwanted scrolling in the viewport. Most common use case is for OverflowMenu
I am asking as a developer.
Example
Justification
The alternative of this feature not being implemented is to use the complex code that detects where the OverflowMenu is, relative to the viewport and change the direction
prop passed in.
Desired UX and success metrics
Success will be the menu not causing the parent dom element to cause janky overflows to occur.
“Must have” functionality
an ‘auto’ direction value that can be passed into the OverflowMenu
’s direction
prop.
auto
will tell OverflowMenu
to detect which direction to open the menu in.
Specific timeline issues / requests
N/A
NB: The Carbon team will try to work with your timeline, but it’s not guaranteed. The earlier you make a request in advance of a desired delivery date, the better!
Available extra resources
N/A
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Just bumping this because another issue has been raised asking for this functionality: https://github.com/carbon-design-system/carbon/issues/7689
Hello! 👋
We are going to move forward with this proposal because we think it would be a great idea to add automation to the overflow menu. We have moved it to our backlog to be worked on.
Thank you!