Put aria-disabled on AccessibleButtons and attempt to a11y ToggleSwitch
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
351a3ebd67
commit
4a5ee4a969
2 changed files with 8 additions and 3 deletions
|
@ -64,7 +64,12 @@ export default class ToggleSwitch extends React.Component {
|
|||
"mx_ToggleSwitch_enabled": !this.props.disabled,
|
||||
});
|
||||
return (
|
||||
<div className={classes} onClick={this._onClick}>
|
||||
<div
|
||||
className={classes}
|
||||
onClick={this._onClick}
|
||||
role="checkbox"
|
||||
aria-checked={this.state.checked}
|
||||
aria-disabled={this.props.disabled}>
|
||||
<div className="mx_ToggleSwitch_ball" />
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue