Skip to content

Commit 4b1064f

Browse files
committed
fix: improve accessibility and input handling
1 parent 23879c9 commit 4b1064f

File tree

1 file changed

+1
-1
lines changed
  • packages/pluggableWidgets/switch-web/src/components

1 file changed

+1
-1
lines changed

packages/pluggableWidgets/switch-web/src/components/Switch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function Switch(props: SwitchProps): ReactElement {
1818
type="checkbox"
1919
id={props.id}
2020
onClick={props.onClick}
21-
style={{ opacity: "0", position: "absolute", width: "1px", height: "1px" }}
21+
className="sr-only"
2222
disabled={!props.editable}
2323
tabIndex={-1}
2424
aria-hidden="true"

0 commit comments

Comments
 (0)