aboutsummaryrefslogtreecommitdiffstats
path: root/apps/kit/src/lib/components
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-09-28 17:04:36 +0200
committerivarlovlie <git@ivarlovlie.no>2022-09-28 17:04:36 +0200
commitaa79ab6d0e3699118aae0ffde6b2c19192b544d5 (patch)
tree760b79ebc54e442dd5d8d6dc4770c0c9890802c9 /apps/kit/src/lib/components
parentcc5d96fc514621f47ea826561db9f037b87ccb6d (diff)
downloadgreatoffice-aa79ab6d0e3699118aae0ffde6b2c19192b544d5.tar.xz
greatoffice-aa79ab6d0e3699118aae0ffde6b2c19192b544d5.zip
feat: Update aria-enabled accordingly
Diffstat (limited to 'apps/kit/src/lib/components')
-rw-r--r--apps/kit/src/lib/components/switch.svelte6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/kit/src/lib/components/switch.svelte b/apps/kit/src/lib/components/switch.svelte
index 8a90dba..c958b0f 100644
--- a/apps/kit/src/lib/components/switch.svelte
+++ b/apps/kit/src/lib/components/switch.svelte
@@ -40,7 +40,7 @@
type="button"
class="group relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2"
role="switch"
- aria-checked="false"
+ aria-checked={enabled}
on:click={toggle}
>
<span class="sr-only">{srText}</span>
@@ -62,7 +62,7 @@
type="button"
class="{colorClass} relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2"
role="switch"
- aria-checked="false"
+ aria-checked={enabled}
on:click={toggle}
>
<span class="sr-only">{srText}</span>
@@ -112,7 +112,7 @@
type="button"
class="{colorClass} relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2"
role="switch"
- aria-checked="false"
+ aria-checked={enabled}
on:click={toggle}
>
<span class="sr-only">{srText}</span>