mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
fix a typo and spacing
This commit is contained in:
parent
9c761137e8
commit
c6bbc85716
1 changed files with 3 additions and 3 deletions
|
@ -201,7 +201,7 @@
|
|||
expandable = true;
|
||||
expanded = expandedRowIds.length === expandableRowIds.length;
|
||||
}
|
||||
$: if (radio || batchSelection || OverflowMenu) selectable = true;
|
||||
$: if (radio || batchSelection || overflowMenu) selectable = true;
|
||||
$: headerKeys = headers.map(({ key }) => key);
|
||||
$: tableCellsByRowId = rows.reduce((rows, row) => {
|
||||
rows[row.id] = headerKeys.map((key, index) => ({
|
||||
|
@ -314,7 +314,7 @@
|
|||
</th>
|
||||
{/if}
|
||||
{#if selectable && !batchSelection}
|
||||
<th scope="col"></th>
|
||||
<th scope="col" style="width: var(--cds-spacing-08);"></th>
|
||||
{/if}
|
||||
{#if batchSelection && !radio && !overflowMenu}
|
||||
<th scope="col" class:bx--table-column-checkbox="{true}">
|
||||
|
@ -458,7 +458,7 @@
|
|||
}}"
|
||||
/>
|
||||
{:else if overflowMenu}
|
||||
<svelte:component this={OverflowMenu} bind:parentRef={tRef}>
|
||||
<svelte:component size="sm" this={OverflowMenu} bind:parentRef={tRef}>
|
||||
<slot name="overflowMenu" row="{row}" />
|
||||
</svelte:component>
|
||||
{:else}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue