From 5af19fd8105836c85eceffcd5aadc5775c12bccd Mon Sep 17 00:00:00 2001 From: "Phongit Khanthawisood (Tonnam)" Date: Sun, 13 Oct 2024 23:02:21 +0700 Subject: [PATCH] style(v2): update `aria-label` for accessibility of checkbox --- .../checkbox/checkbox.stories.svelte | 39 +++++++++++++++++-- .../src/components/checkbox/checkbox.svelte | 2 +- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/packages/ui/src/components/checkbox/checkbox.stories.svelte b/packages/ui/src/components/checkbox/checkbox.stories.svelte index 84089791f..c5a8df143 100644 --- a/packages/ui/src/components/checkbox/checkbox.stories.svelte +++ b/packages/ui/src/components/checkbox/checkbox.stories.svelte @@ -19,6 +19,11 @@ onClick: { action: 'onClick', }, + 'aria-label': { + control: 'text', + description: + 'attribute defines a string value that labels an interactive element', + }, }, } satisfies Meta @@ -34,13 +39,39 @@ - + - + - + - + -
+