Commit c1e47b9
fix(menu): prevent overflow (#21006)
* fix(menu): prevent menu overflow
This uses the correct menu html element for checking the size of the menu to
correctly compute the position to avoid overflow.
* docs(menu): add context menu example to storybook
This adds an example of a context menu to the menu story to show correct
automatic positioning of the menu and submenus to avoid overflows.
* Update packages/web-components/src/components/menu/menu.stories.ts
---------
Co-authored-by: Mahmoud <132728978+maradwan26@users.noreply.github.com>
Co-authored-by: Heloise Lui <71858203+heloiselui@users.noreply.github.com>1 parent 3c07d99 commit c1e47b9
File tree
2 files changed
+22
-1
lines changed2 files changed
+22
-1
lines changedLines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
93 | 113 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
| 317 | + | |
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
| |||
0 commit comments