From 4452bf587bc1482dcf49e32483ce73a9885b8f4f Mon Sep 17 00:00:00 2001 From: palewire Date: Wed, 5 Apr 2023 15:24:06 -0400 Subject: [PATCH] Fixes to the sort column --- src/components/Table/SortArrow.svelte | 14 ++++++++++-- src/components/Table/Table.svelte | 26 +++++++++++++++++------ src/components/Table/stories/docs/sort.md | 2 ++ 3 files changed, 33 insertions(+), 9 deletions(-) diff --git a/src/components/Table/SortArrow.svelte b/src/components/Table/SortArrow.svelte index d7ff89b4..9c238e02 100644 --- a/src/components/Table/SortArrow.svelte +++ b/src/components/Table/SortArrow.svelte @@ -5,6 +5,12 @@ */ type SortDirection = 'ascending' | 'descending'; export let sortDirection: SortDirection = 'ascending'; + + /** + * Whether or not this arrow is currently sorting. It is false by default. + * @type {boolean} + */ + export let active: boolean = false;