Skip to content

Commit

Permalink
feat(Switch): switch a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
guanpu authored and youluna committed Jan 11, 2019
1 parent 86f83c6 commit 2c2645c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/switch/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class Switch extends React.Component {
}

return (
<div {...others} className={classes} {...attrs} aria-checked={this.state.checked}>
<div role="switch" tabIndex="0" {...others} className={classes} {...attrs} aria-checked={this.state.checked}>
<div className={`${this.props.prefix}switch-children`}>{children}</div>
</div>
);
Expand Down

0 comments on commit 2c2645c

Please sign in to comment.