Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
left: var(--pine-dimension-none);
min-width: 170px;
padding: var(--pine-dimension-xs);
position: absolute;
position: fixed;
z-index: var(--pine-z-index-overlay);

:host-context([data-theme="dark"]) & {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export class PdsDropdownMenu implements BasePdsProps {
const updatePosition = () => {
computePosition(this.triggerEl, this.panelEl as HTMLElement, {
placement: this.placement,
strategy: 'fixed',
middleware: [offset(6), flip(), shift({padding: 5})],
}).then(({ x, y }) => {
Object.assign(this.panelEl.style, {
Expand Down
32 changes: 28 additions & 4 deletions libs/core/src/components/pds-table/stories/pds-table.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const ResponsiveTemplate = (args) => html`
<pds-table-head-cell>Column Title</pds-table-head-cell>
<pds-table-head-cell>Column Title</pds-table-head-cell>
<pds-table-head-cell>Column Title</pds-table-head-cell>
<pds-table-head-cell>Column Title</pds-table-head-cell>
<pds-table-head-cell>Actions</pds-table-head-cell>
</pds-table-head>
<pds-table-body>
<pds-table-row value="responsive1">
Expand All @@ -157,7 +157,15 @@ const ResponsiveTemplate = (args) => html`
<pds-table-cell>Row Item Juliett</pds-table-cell>
<pds-table-cell>Row Item Kilo</pds-table-cell>
<pds-table-cell>Row Item Lima</pds-table-cell>
<pds-table-cell>Row Item Mike</pds-table-cell>
<pds-table-cell>
<pds-dropdown-menu placement="bottom-end">
<pds-button slot="trigger" size="sm" variant="icon-only"><pds-icon name="dot-menu-horizontal"></pds-icon></pds-button>
<pds-dropdown-menu-item>Edit</pds-dropdown-menu-item>
<pds-dropdown-menu-item>Duplicate</pds-dropdown-menu-item>
<pds-dropdown-menu-separator></pds-dropdown-menu-separator>
<pds-dropdown-menu-item destructive>Delete</pds-dropdown-menu-item>
</pds-dropdown-menu>
</pds-table-cell>
</pds-table-row>
<pds-table-row value="responsive2">
<pds-table-cell>Row Item Alpha</pds-table-cell>
Expand All @@ -171,7 +179,15 @@ const ResponsiveTemplate = (args) => html`
<pds-table-cell>Row Item Juliett</pds-table-cell>
<pds-table-cell>Row Item Kilo</pds-table-cell>
<pds-table-cell>Row Item Lima</pds-table-cell>
<pds-table-cell>Row Item Mike</pds-table-cell>
<pds-table-cell>
<pds-dropdown-menu placement="bottom-end">
<pds-button slot="trigger" size="sm" variant="icon-only"><pds-icon name="dot-menu-horizontal"></pds-icon></pds-button>
<pds-dropdown-menu-item>Edit</pds-dropdown-menu-item>
<pds-dropdown-menu-item>Duplicate</pds-dropdown-menu-item>
<pds-dropdown-menu-separator></pds-dropdown-menu-separator>
<pds-dropdown-menu-item destructive>Delete</pds-dropdown-menu-item>
</pds-dropdown-menu>
</pds-table-cell>
</pds-table-row>
<pds-table-row value="responsive3">
<pds-table-cell>Row Item Alpha</pds-table-cell>
Expand All @@ -185,7 +201,15 @@ const ResponsiveTemplate = (args) => html`
<pds-table-cell>Row Item Juliett</pds-table-cell>
<pds-table-cell>Row Item Kilo</pds-table-cell>
<pds-table-cell>Row Item Lima</pds-table-cell>
<pds-table-cell>Row Item Mike</pds-table-cell>
<pds-table-cell>
<pds-dropdown-menu placement="bottom-end">
<pds-button slot="trigger" size="sm" variant="icon-only"><pds-icon name="dot-menu-horizontal"></pds-icon></pds-button>
<pds-dropdown-menu-item>Edit</pds-dropdown-menu-item>
<pds-dropdown-menu-item>Duplicate</pds-dropdown-menu-item>
<pds-dropdown-menu-separator></pds-dropdown-menu-separator>
<pds-dropdown-menu-item destructive>Delete</pds-dropdown-menu-item>
</pds-dropdown-menu>
</pds-table-cell>
</pds-table-row>
</pds-table-body>
</pds-table>`;
Expand Down
Loading