Skip to content

Commit a7d88a5

Browse files
committed
fix(@clayui/form): LPD-45345 Radio Toggle Switch should use role="radio"
1 parent 23d9295 commit a7d88a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/clay-form/src/Toggle.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const ClayToggle = React.forwardRef<HTMLLabelElement, IToggleProps>(
4444
ref
4545
) => {
4646
if (type === 'radio') {
47+
role = 'radio';
4748
toggled = checked;
4849
}
4950

0 commit comments

Comments
 (0)