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
1 change: 0 additions & 1 deletion src/lib/components/Table/ColumnsMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
type="button"
class="btn btn-sm variant-filled-primary rounded-full order-last"
aria-label="Open menu to hide/show columns"
title="Open menu to hide/show columns"
use:popup={popupCombobox}>Columns</button
>

Expand Down
7 changes: 3 additions & 4 deletions src/lib/components/Table/TableContent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@
id="{tableId}-searchReset"
class="absolute right-3 items-center"
aria-label="Clear search"
title="Clear search"
on:click|preventDefault={() => {
if (serverSide && !sendModel) {
throw new Error('Server-side configuration is missing');
Expand All @@ -428,7 +427,7 @@
type="submit"
id="{tableId}-searchSubmit"
class="btn variant-filled-primary"
title="Search"
aria-label="Search"
on:click|preventDefault={() => {
if (serverSide && !sendModel) {
throw new Error('Server-side configuration is missing');
Expand Down Expand Up @@ -470,7 +469,7 @@
<button
type="button"
class="btn btn-sm variant-filled-primary rounded-full order-last"
title="Reset sizing of columns and rows"
aria-label="Reset sizing of columns and rows"
on:click|preventDefault={() =>
resetResize($headerRows, $pageRows, tableId, columns, resizable)}
>Reset sizing</button
Expand All @@ -480,7 +479,7 @@
<button
type="button"
class="btn btn-sm variant-filled-primary rounded-full order-last"
title="Export table data as CSV"
aria-label="Export table data as CSV"
on:click|preventDefault={() => exportAsCsv(tableId, $exportedData)}
>Export as CSV</button
>
Expand Down
9 changes: 0 additions & 9 deletions src/lib/components/Table/TableFilter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@
use:popup={popupFeatured}
id="{popupId}-button"
aria-label="Open filter menu for {id} column"
title="Open filter menu for {id} column"
>
<Fa icon={faFilter} size="12" />
</button>
Expand All @@ -252,7 +251,6 @@
class="btn variant-filled-primary btn-sm"
type="button"
aria-label="Clear Filters"
title="Clear Filters"
on:click|preventDefault={() => {
// Set the defaults when cleared
clearFilters();
Expand All @@ -271,15 +269,13 @@
<select
class="select border border-primary-500 text-sm p-1"
aria-label="Show rows with value that"
title="Show rows with value that"
on:change={(e) => optionChangeHandler(e, index)}
bind:value={dropdown.option}
>
{#each options[type] as option (option)}
<option
value={option.value}
aria-label={option.label}
title={option.label}
selected={dropdown.option === option.value}
disabled={Object.keys($filters[id]).includes(option.value) &&
dropdown.option !== option.value}>{option.label}</option
Expand All @@ -290,7 +286,6 @@
<div
class="btn variant-filled-warning btn-sm h-full"
aria-label="Remove filter"
title="Remove filter"
on:click|preventDefault={() => removeFilter(dropdown.option)}
on:keydown|preventDefault={() => removeFilter(dropdown.option)}
>
Expand All @@ -306,7 +301,6 @@
on:input={(e) => valueChangeHandler(e, index)}
bind:value={dropdown.value}
aria-label="Filter value"
title="Filter value"
/>
{:else}
<input
Expand All @@ -315,7 +309,6 @@
on:input={(e) => valueChangeHandler(e, index)}
bind:value={dropdown.formValue}
aria-label="Filter value"
title="Filter value"
/>
{/if}
</div>
Expand All @@ -335,7 +328,6 @@
addFilter(remainingFilters[0].value, undefined);
}}
aria-label="Add filter"
title="Add filter"
>
<div class="flex gap-1 items-center"><Fa icon={faPlus} />Add Filter</div>
</div>
Expand All @@ -344,7 +336,6 @@
class="btn variant-filled-primary btn-sm"
type="button"
aria-label="Apply filters"
title="Apply filters"
on:click|preventDefault={() => {
$pageIndex = 0;
$filterValue = $filters[id];
Expand Down
6 changes: 0 additions & 6 deletions src/lib/components/Table/TablePagination.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@

<button
aria-label="Open menu to select number of items to display per page"
title="Open menu to select number of items to display per page"
class="btn variant-filled-primary w-20 justify-between"
use:popup={pageSizePopup}
>
Expand All @@ -88,7 +87,6 @@
class="btn btn-sm variant-filled-primary"
on:click|preventDefault={goToFirstPage}
aria-label="Go to first page"
title="Go to first page"
disabled={goToFirstPageDisabled}
id="{id}-first"
>
Expand All @@ -98,7 +96,6 @@
class="btn btn-sm variant-filled-primary"
id="{id}-previous"
aria-label="Go to previous page"
title="Go to previous page"
on:click|preventDefault={goToPreviousPage}
disabled={goToPreviousPageDisabled}><Fa icon={faAngleLeft} /></button
>
Expand All @@ -108,22 +105,19 @@
value={$pageIndex + 1}
max={$pageCount}
aria-label="Current page"
title="Current page"
min={1}
on:change={handleChange}
/>
<button
class="btn btn-sm variant-filled-primary"
id="{id}-next"
aria-label="Go to next page"
title="Go to next page"
on:click|preventDefault={goToNextPage}
disabled={goToNextPageDisabled}><Fa icon={faAngleRight} /></button
>
<button
class="btn btn-sm variant-filled-primary"
aria-label="Go to last page"
title="Go to last page"
id="{id}-last"
on:click|preventDefault={goToLastPage}
disabled={goToLastPageDisabled}><Fa icon={faAnglesRight} /></button
Expand Down