Skip to content

Commit 652b7e1

Browse files
committed
feat: make ariaLabel required for SwitchProps to enhance accessibility
1 parent daa9daa commit 652b7e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Shared/Components/Switch/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ type SwitchShapeProps =
6666
export type SwitchProps = {
6767
/**
6868
* The ARIA label for the switch, used for accessibility purposes.
69-
* Please provide this when there is no clear label for the switch.
7069
*/
71-
ariaLabel?: string
70+
ariaLabel: string
7271

7372
/**
7473
* Used in forms to identify the switch.

0 commit comments

Comments
 (0)