Skip to content

Commit

Permalink
Make Overflow menu example more similar to react one
Browse files Browse the repository at this point in the history
  • Loading branch information
n-peugnet committed Aug 12, 2024
1 parent a5a1d27 commit 2921502
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/framed/DataTable/DataTableAppendColumns.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{ key: "name", value: "Name" },
{ key: "port", value: "Port" },
{ key: "rule", value: "Rule" },
{ key: "overflow", empty: true },
{ key: "overflow", empty: true, columnMenu: true },
];
const rows = [
Expand All @@ -25,7 +25,7 @@
<DataTable sortable headers="{headers}" rows="{rows}">
<svelte:fragment slot="cell" let:cell>
{#if cell.key === "overflow"}
<OverflowMenu flipped>
<OverflowMenu size="sm" flipped>
<OverflowMenuItem text="Restart" />
<OverflowMenuItem
href="https://cloud.ibm.com/docs/loadbalancer-service"
Expand Down
2 changes: 2 additions & 0 deletions src/DataTable/Table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
class:bx--data-table--zebra="{zebra}"
class:bx--data-table--static="{useStaticWidth}"
class:bx--data-table--sticky-header="{stickyHeader}"
class:bx--data-table--visible-overflow-menu="{true}"
style="{tableStyle}"
>
<slot />
Expand All @@ -54,6 +55,7 @@
class:bx--data-table--zebra="{zebra}"
class:bx--data-table--static="{useStaticWidth}"
class:bx--data-table--sticky-header="{stickyHeader}"
class:bx--data-table--visible-overflow-menu="{true}"
{...$$restProps}
style="{tableStyle}"
>
Expand Down

0 comments on commit 2921502

Please sign in to comment.