From 63b01425e7ed5e810853c7af629f4e3198a9fb5d Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Fri, 22 Sep 2023 14:53:32 -0700 Subject: [PATCH] refactor(menu,select)!: rename `fixed` to `positioning` This will enable forwards compatibility for `positioning="top-layer"` with popover. BREAKING CHANGE: refactor `fixed` property to `positioning="fixed"` in Menu and `menuFixed` to `menuPositioning="fixed"` PiperOrigin-RevId: 567723646 --- .../stories/components/knob-ui-components.ts | 2 +- dialog/internal/_dialog.scss | 2 +- docs/components/figures/menu/usage-fixed.html | 2 +- docs/components/menu.md | 7 ++- menu/demo/demo.ts | 13 ++++-- menu/demo/stories.ts | 14 +++--- menu/internal/menu.ts | 43 ++++++++----------- menu/internal/shared.ts | 16 +++++++ menu/internal/surfacePositionController.ts | 36 ++++++++-------- menu/menu.ts | 4 +- menu/sub-menu.ts | 5 ++- select/demo/demo.ts | 12 +++++- select/demo/stories.ts | 6 +-- select/internal/select.ts | 10 +++-- 14 files changed, 101 insertions(+), 71 deletions(-) diff --git a/catalog/stories/components/knob-ui-components.ts b/catalog/stories/components/knob-ui-components.ts index f1b1915f7a..f054393232 100644 --- a/catalog/stories/components/knob-ui-components.ts +++ b/catalog/stories/components/knob-ui-components.ts @@ -398,7 +398,7 @@ export function selectDropdown({