Skip to content

Commit

Permalink
Add aria-label to vote element.
Browse files Browse the repository at this point in the history
See #109.
  • Loading branch information
boonebgorges committed May 1, 2018
1 parent b51c481 commit 653f872
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ScoreDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default class ScoreDialog extends React.Component {
const srElement = <span className="screen-reader-text">{voteText}</span>
voteElement = (
<button
aria-label={voteText}
disabled={voteButtonIsDisabled}
onClick={ (e) => {
e.preventDefault()
Expand Down

0 comments on commit 653f872

Please sign in to comment.