Skip to content

Commit 89d1b1a

Browse files
committed
Fix topcoder-platform#2806 [MSFT-102] Challenges page: Screen readers announce the details of the challenge in an incorrect order.
1 parent 081295d commit 89d1b1a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/shared/components/challenge-listing/ChallengeCard/Prize/index.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ export default function Prize({
1919
withoutTooltip,
2020
}) {
2121
const component = (
22-
<div>
22+
<div styleName="prize-wrapper">
23+
<div styleName="label">
24+
{label}
25+
</div>
2326
<div styleName="prize">
2427
<span styleName="symbol">
2528
{prizeUnitSymbol}
2629
</span>
2730
{totalPrize.toLocaleString()}
2831
</div>
29-
<div styleName="label">
30-
{label}
31-
</div>
3232
</div>
3333
);
3434
if (withoutTooltip) return component;

src/shared/components/challenge-listing/ChallengeCard/Prize/style.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
@import "~styles/mixins";
22

3+
.prize-wrapper {
4+
display: flex;
5+
flex-direction: column;
6+
}
7+
38
.label {
49
cursor: default;
510
padding: 0 (2 * $base-unit);
611
background: $tc-gray-neutral-light;
712
font-size: 10px;
813
color: $tc-gray-70;
914
white-space: nowrap;
15+
order: 2;
1016

1117
@include xs-to-sm {
1218
display: inline-block;

0 commit comments

Comments
 (0)