We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86f83c6 commit 2c2645cCopy full SHA for 2c2645c
src/switch/index.jsx
@@ -146,7 +146,7 @@ class Switch extends React.Component {
146
}
147
148
return (
149
- <div {...others} className={classes} {...attrs} aria-checked={this.state.checked}>
+ <div role="switch" tabIndex="0" {...others} className={classes} {...attrs} aria-checked={this.state.checked}>
150
<div className={`${this.props.prefix}switch-children`}>{children}</div>
151
</div>
152
);
0 commit comments