From aa79ab6d0e3699118aae0ffde6b2c19192b544d5 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Wed, 28 Sep 2022 23:04:36 +0800
Subject: feat: Update aria-enabled accordingly

---
 apps/kit/src/lib/components/switch.svelte | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'apps/kit/src/lib/components/switch.svelte')

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>
-- 
cgit v1.3

