From 27d2d21ffd29dbfd9880fc16d2e6a2bdbb0135ed Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Fri, 2 Dec 2022 06:32:31 +0930 Subject: [PATCH 1/2] resolve A11y warnings --- components/mdc/Card/Card.svelte | 2 +- .../mdc/Datatable/DatatableCheckbox.svelte | 2 +- components/mdc/Drawer/Drawer.svelte | 18 ++++++++++++++---- components/mdc/List/Item.svelte | 3 +++ components/mdc/Select/Select.svelte | 4 +++- stories/Button.stories.svelte | 9 ++++++--- 6 files changed, 28 insertions(+), 10 deletions(-) diff --git a/components/mdc/Card/Card.svelte b/components/mdc/Card/Card.svelte index 6140076e..b920dda4 100644 --- a/components/mdc/Card/Card.svelte +++ b/components/mdc/Card/Card.svelte @@ -6,7 +6,7 @@ export let color = 'white' export let isClickable = false export let noPadding = false -$: tabindex = isClickable ? '0' : undefined +$: tabindex = isClickable ? 0 : undefined