Skip to content

Commit

Permalink
Merge pull request #5123 from jessiehuff/fix/event-button
Browse files Browse the repository at this point in the history
Bug 1826088: Events stream button needs proper label to be read by screen reader
  • Loading branch information
openshift-merge-robot committed Apr 21, 2020
2 parents ca8cd68 + 6e3bf36 commit ac0363c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontend/public/components/utils/toggle-play.jsx
Expand Up @@ -16,7 +16,14 @@ export class TogglePlay extends React.Component {
this.props.className,
this.props.active ? 'co-toggle-play--active' : 'co-toggle-play--inactive',
);
return <Button variant="plain" className={klass} onClick={this.props.onClick} />;
return (
<Button
variant="plain"
className={klass}
onClick={this.props.onClick}
aria-label={this.props.active ? 'Pause event streaming' : 'Start streaming events'}
/>
);
}
}
TogglePlay.propTypes = {
Expand Down

0 comments on commit ac0363c

Please sign in to comment.