9 Commits

Author SHA1 Message Date
Copybara-Service
e15f47e1a2 Merge pull request #5689 from Pupix:main
PiperOrigin-RevId: 660400219
2024-08-07 08:29:55 -07:00
Pupix
6df7161d69 Allow users to disable surface flipping in md-menu
Sometimes the desired effect is to have the menu extend to the available height and then start overflowing instead of flipping to the opposite corner. Cases like search bar, autocomplete or any kind of input with suggestions below the textfield content.
2024-08-02 22:57:44 +02:00
Material Web Team
3d8c7ac7f3 fix(menu): declare popover property type on HTMLElement
Without it the popover property got renamed by closure.

PiperOrigin-RevId: 584184281
2023-11-20 18:53:26 -08:00
Material Web Team
bf8d3f6289 fix(menu): declare popover API types
Without it show/hide popover get renamed by closure.

PiperOrigin-RevId: 582471354
2023-11-14 16:12:59 -08:00
Elliott Marquez
7859b39afe feat(menu): add popover functionality
Uses popover API for browsers that support it. Falls back to fixed positioning on browsers that do not.

fixes #2023
fixes #5120

PiperOrigin-RevId: 580633646
2023-11-08 13:14:25 -08:00
Elliott Marquez
2b591ca759 feat(menu): add document-level positioning
related #5120

PiperOrigin-RevId: 580293404
2023-11-07 14:04:00 -08:00
Elizabeth Mitchell
c390291687 chore: format files with prettier
PiperOrigin-RevId: 576601342
2023-10-25 11:59:00 -07:00
Elliott Marquez
863109e204 fix(menu): fix menu OOB from resizing window
fixes #5063

PiperOrigin-RevId: 574286021
2023-10-17 15:42:11 -07:00
Elliott Marquez
1217b62ef2 refactor(menu)!: pull logic out of menuitem into a controller & change enum vals
BREAKING CHANGE: Several enums in menu had their values changed from SCREAM_CASE to kebab-case to follow style guide. They are NAVIGABLE_KEYS -> NavigableKey, SELECTION_KEY -> SelectionKey, CLOSE_REASON -> CloseReason, KEYDOWN_CLOSE_KEY -> KeydownCloseKey

PiperOrigin-RevId: 567727434
2023-09-22 15:09:41 -07:00