We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a024607 commit 4376c56Copy full SHA for 4376c56
components/mdc/Datatable/HeaderItem.svelte
@@ -19,10 +19,15 @@ const labelID = generateRandomID('column-label-')
19
>
20
{#if sortable}
21
<div class="mdc-data-table__header-cell-wrapper">
22
+ {#if numeric}
23
+ <IconButton icon="arrow_upward" ariaLabel={`Sort by ${columnID}`} class="mdc-data-table__sort-icon-button" />
24
+ {/if}
25
<div class="mdc-data-table__header-cell-label">
26
<slot />
27
</div>
- <IconButton icon="arrow_upward" ariaLabel={`Sort by ${columnID}`} class="mdc-data-table__sort-icon-button" />
28
+ {#if !numeric}
29
30
31
<div class="mdc-data-table__sort-status-label" aria-hidden="true" id={labelID} />
32
33
{:else}
0 commit comments