Skip to content

Commit ef882a1

Browse files
Merge pull request #6707 from topcoder-platform/PROD-3009
Prod 3009
2 parents 7985917 + 8ff6d16 commit ef882a1

File tree

3 files changed

+112
-27
lines changed

3 files changed

+112
-27
lines changed

src/shared/components/ProfilePage/Awards/AwardBadge/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const AwardBadge = ({
1717
}
1818
<div styleName="title">
1919
<span>
20+
{/* eslint-disable-next-line react/no-danger */}
2021
<div dangerouslySetInnerHTML={{ __html: title }} />
2122
</span>
2223
</div>

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ export default function ChallengeHeader(props) {
397397
onClick={unregisterFromChallenge}
398398
theme={{
399399
button: unregisterButtonDisabled
400-
? style.submitButtonDisabled
400+
? style.unregisterButtonDisabled
401401
: style.unregisterButton,
402402
}}
403403
>
@@ -423,16 +423,16 @@ export default function ChallengeHeader(props) {
423423
Submit
424424
</PrimaryButton>
425425
{
426-
track === COMPETITION_TRACKS.DES && hasRegistered && !unregistering
426+
track === COMPETITION_TRACKS.DES && hasRegistered && !unregistering
427427
&& hasSubmissions && (
428-
<PrimaryButton
429-
theme={{ button: style.submitButton }}
430-
to={`${challengesUrl}/${challengeId}/my-submissions`}
431-
>
432-
View Submissions
433-
</PrimaryButton>
434-
)
435-
}
428+
<PrimaryButton
429+
theme={{ button: style.submitButton }}
430+
to={`${challengesUrl}/${challengeId}/my-submissions`}
431+
>
432+
View Submissions
433+
</PrimaryButton>
434+
)
435+
}
436436
</div>
437437
</div>
438438
</div>

src/shared/components/challenge-detail/Header/style.scss

Lines changed: 101 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,66 +10,150 @@
1010
padding: 0 25px !important;
1111
}
1212

13-
.submitButton {
14-
margin: $base-unit 0;
13+
.challenge-ops-container .submitButton {
14+
margin: 5px;
1515
min-width: 0;
16-
width: 100%;
1716
border-radius: 50px !important;
1817
height: 48px;
19-
padding: 0 25px !important;
2018
background: #137d60 !important;
2119
color: #fff !important;
20+
white-space: nowrap;
21+
padding: 12px 24px !important;
22+
font-size: 16px;
23+
line-height: 24px;
24+
font-weight: 700;
25+
letter-spacing: 0.008em;
2226

2327
@include xs-to-sm {
2428
width: fit-content;
2529
}
2630
}
2731

28-
.submitButtonDisabled {
29-
margin: $base-unit 0;
32+
.challenge-ops-container .submitButtonDisabled {
33+
margin: 5px;
3034
min-width: 0;
31-
width: 100%;
3235
border-radius: 50px !important;
3336
height: 48px;
34-
padding: 0 25px !important;
37+
padding: 12px 24px !important;
3538
color: #767676 !important;
3639
background: #f4f4f4 !important;
40+
font-size: 16px;
41+
line-height: 24px;
42+
font-weight: 700;
43+
letter-spacing: 0.008em;
3744

3845
@include xs-to-sm {
3946
width: fit-content;
4047
}
4148
}
4249

43-
.unregisterButton {
44-
margin: $base-unit 0;
50+
.challenge-ops-container .unregisterButton {
51+
margin: 5px;
4552
min-width: 0;
46-
width: 100%;
4753
border-radius: 50px !important;
4854
height: 48px;
49-
padding: 0 25px !important;
55+
padding: 12px 24px !important;
5056
color: #137d60 !important;
51-
border-color: #137d60 !important;
57+
border: 2px solid #137d60 !important;
5258
background: #fff !important;
59+
font-size: 16px;
60+
line-height: 24px;
61+
font-weight: 700;
62+
letter-spacing: 0.008em;
5363

5464
@include xs-to-sm {
5565
width: fit-content;
5666
}
5767
}
5868

59-
.registerBtn {
60-
margin: $base-unit 0;
69+
.challenge-ops-container .unregisterButtonDisabled {
70+
margin: 5px;
6171
min-width: 0;
62-
width: 100%;
6372
border-radius: 50px !important;
6473
height: 48px;
65-
padding: 0 25px !important;
74+
padding: 12px 24px !important;
75+
color: #767676 !important;
76+
border: 2px solid #f4f4f4;
77+
background: #fff !important;
78+
font-size: 16px;
79+
line-height: 24px;
80+
font-weight: 700;
81+
letter-spacing: 0.008em;
82+
83+
@include xs-to-sm {
84+
width: fit-content;
85+
}
86+
}
87+
88+
.challenge-ops-container .registerBtn {
89+
margin: 5px;
90+
min-width: 0;
91+
border-radius: 50px !important;
92+
height: 48px;
93+
padding: 12px 24px !important;
6694
background-color: #137d60 !important;
95+
font-size: 16px;
96+
line-height: 24px;
97+
font-weight: 700;
98+
letter-spacing: 0.008em;
6799

68100
@include xs-to-sm {
69101
width: fit-content;
70102
}
71103
}
72104

105+
.challenge-ops-container .submitButton:hover,
106+
.challenge-ops-container .registerBtn:hover {
107+
color: #fff !important;
108+
background: #219174 !important;
109+
border-color: #219174 !important;
110+
}
111+
112+
.challenge-ops-container .unregisterButton:hover {
113+
color: #219174 !important;
114+
border-color: #219174 !important;
115+
background: #fff !important;
116+
}
117+
118+
.challenge-ops-container .submitButton:active,
119+
.challenge-ops-container .registerBtn:active {
120+
color: #fff !important;
121+
background: #0d664e !important;
122+
border-color: #0d664e !important;
123+
}
124+
125+
.challenge-ops-container .unregisterButton:active {
126+
outline: none !important;
127+
box-shadow: none !important;
128+
color: #0d664e !important;
129+
border-color: #0d664e !important;
130+
background: #fff !important;
131+
}
132+
133+
.challenge-ops-container .submitButton:focus,
134+
.challenge-ops-container .submitButton:focus-within,
135+
.challenge-ops-container .submitButton:focus-visible {
136+
outline: none !important;
137+
box-shadow: none !important;
138+
border-color: #0d664e;
139+
}
140+
141+
.challenge-ops-container .registerBtn:focus,
142+
.challenge-ops-container .registerBtn:focus-within,
143+
.challenge-ops-container .registerBtn:focus-visible {
144+
outline: none !important;
145+
box-shadow: none !important;
146+
border-color: #0d664e;
147+
}
148+
149+
.challenge-ops-container .unregisterButton:focus,
150+
.challenge-ops-container .unregisterButton:focus-within,
151+
.challenge-ops-container .unregisterButton:focus-visible {
152+
outline: none !important;
153+
box-shadow: none !important;
154+
border-color: #0d664e;
155+
}
156+
73157
.challenge-ops-container {
74158
display: flex;
75159
margin-top: 32px;

0 commit comments

Comments
 (0)