Skip to content

Commit

Permalink
fix: move proper menu positioning style for split button into the com…
Browse files Browse the repository at this point in the history
…ponent css (#33140)
  • Loading branch information
marchbox authored Oct 25, 2024
1 parent 5b86f90 commit 6bc347d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "fix: move proper menu positioning for split button into component css",
"packageName": "@fluentui/web-components",
"email": "machi@microsoft.com",
"dependentChangeType": "patch"
}
4 changes: 4 additions & 0 deletions packages/web-components/src/menu/menu.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export const styles = css`
z-index: 1;
}
:host([split]) ::slotted([popover]) {
position-area: block-end span-inline-start;
}
::slotted([popover]:popover-open) {
inset: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { Menu as FluentMenu } from '../menu/menu.js';
type Story = StoryObj<FluentMenu>;

const defaultSlottedContent = html`
<fluent-menu-list style="position-area: block-end span-inline-start;">
<fluent-menu-list>
<fluent-menu-item>Menu item 1</fluent-menu-item>
<fluent-menu-item>Menu item 2</fluent-menu-item>
<fluent-menu-item>Menu item 3</fluent-menu-item>
Expand Down

0 comments on commit 6bc347d

Please sign in to comment.