Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: ContextualMenu doesn't respect spacing limits of LayerHost #32493

Open
2 tasks done
jcksonhe opened this issue Sep 9, 2024 · 0 comments
Open
2 tasks done

[Bug]: ContextualMenu doesn't respect spacing limits of LayerHost #32493

jcksonhe opened this issue Sep 9, 2024 · 0 comments
Labels
Component: ContextualMenu Fluent UI react (v8) Issues about @fluentui/react (v8)

Comments

@jcksonhe
Copy link

jcksonhe commented Sep 9, 2024

Library

React / v8 (@fluentui/react)

System Info

System:
    OS: Windows 10 10.0.22631
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Memory: 521.17 MB / 15.71 GB
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527

Are you reporting an Accessibility issue?

no

Reproduction

https://codepen.io/jcksonhe/pen/OJedayw

Bug Description

We have use cases where a page has multiple LayerHosts, one of which can open a ContextualMenu. We noticed that ContextualMenus in particular can go beyond its LayerHost and get tucked behind another.

Actual Behavior

Layers created as a ContextualMenu does not respect the spacing limitations of the LayerHost it's rendered within. However, other layers, such as the Callout in the example, does. I couldn't find in the docs that this behavior was by-design either.

Expected Behavior

Expected ContextualMenus to behave like other layers, where it will overflow if its content is larger than the size defined by its LayerHost

Logs

No response

Requested priority

High

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: ContextualMenu Fluent UI react (v8) Issues about @fluentui/react (v8)
Projects
None yet
Development

No branches or pull requests

2 participants