From b7fa09e1aeb80933612e917ce27609a7b70e7c23 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Sun, 13 May 2018 23:21:14 +0300 Subject: [PATCH] add some tabindexes --- web/app/components/comment/comment.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/app/components/comment/comment.jsx b/web/app/components/comment/comment.jsx index e2048b4a..49a91b24 100644 --- a/web/app/components/comment/comment.jsx +++ b/web/app/components/comment/comment.jsx @@ -311,6 +311,7 @@ export default class Comment extends Component { className={b('comment__vote', {}, { type: 'up', selected: scoreIncreased, disabled: isGuest || isCurrentUser })} role="button" aria-disabled={isGuest || isCurrentUser} + tabIndex="0" onClick={isGuest || isCurrentUser ? null : this.increaseScore} title={isGuest ? 'Only authorized users are allowed to vote' : (isCurrentUser ? 'You can\'t vote for your own comment' : null)} >Vote up @@ -324,6 +325,7 @@ export default class Comment extends Component { className={b('comment__vote', {}, { type: 'down', selected: scoreDecreased, disabled: isGuest || isCurrentUser })} role="button" aria-disabled={isGuest || isCurrentUser ? 'true' : 'false'} + tabIndex="0" onClick={isGuest || isCurrentUser ? null : this.decreaseScore} title={isGuest ? 'Only authorized users are allowed to vote' : (isCurrentUser ? 'You can\'t vote for your own comment' : null)} >Vote down @@ -351,6 +353,7 @@ export default class Comment extends Component { !mods.disabled && mods.collapsible && ( {mods.collapsed ? '+' : '−'} )