Skip to content

Commit 589ba2a

Browse files
committed
add tab support
1 parent 8d5190a commit 589ba2a

File tree

1 file changed

+3
-1
lines changed
  • src/shared/components/challenge-detail/Header

1 file changed

+3
-1
lines changed

src/shared/components/challenge-detail/Header/Prizes.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ export default function Prizes({ pointPrizes, prizes }) {
2727
<div
2828
styleName="prize-fill"
2929
key={rank}
30-
role="contentinfo"
30+
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
31+
tabIndex={0}
32+
role="figure"
3133
aria-label={`${rank}${getOrdinal(rank)} prize is ${!_.isUndefined(prizes[index]) ? '$' : ''}${pair.join(' + ')}`}
3234
>
3335
<div id={`rank${rank}`} styleName="prize-card">

0 commit comments

Comments
 (0)