carbon-design-system / carbon-components-svelte

Svelte implementation of the Carbon Design System
https://svelte.carbondesignsystem.com
Apache License 2.0
2.68k stars 261 forks source link

ContextMenu submenu position goes out of screen on small screen #1847

Open maisonsmd opened 10 months ago

maisonsmd commented 10 months ago

This issue might relate to #577

I faced this issue while testing the website on mobile. Tested again on browser responsive mode with the example on the docs: link

image image

The submenu position should be constrained inside the viewport. This is the positioning behavior on Carbon React for reference:

image