Skip to content

Commit 8ff6d16

Browse files
committed
fix: button stylings
1 parent 04a22c6 commit 8ff6d16

File tree

2 files changed

+36
-11
lines changed

2 files changed

+36
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
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
>

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

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
.challenge-ops-container .submitButton {
1414
margin: 5px;
1515
min-width: 0;
16-
border-width: 2px !important;
1716
border-radius: 50px !important;
1817
height: 48px;
1918
background: #137d60 !important;
2019
color: #fff !important;
2120
white-space: nowrap;
2221
padding: 12px 24px !important;
22+
font-size: 16px;
23+
line-height: 24px;
2324
font-weight: 700;
2425
letter-spacing: 0.008em;
2526

@@ -31,12 +32,13 @@
3132
.challenge-ops-container .submitButtonDisabled {
3233
margin: 5px;
3334
min-width: 0;
34-
border-width: 2px !important;
3535
border-radius: 50px !important;
3636
height: 48px;
3737
padding: 12px 24px !important;
3838
color: #767676 !important;
3939
background: #f4f4f4 !important;
40+
font-size: 16px;
41+
line-height: 24px;
4042
font-weight: 700;
4143
letter-spacing: 0.008em;
4244

@@ -48,13 +50,33 @@
4850
.challenge-ops-container .unregisterButton {
4951
margin: 5px;
5052
min-width: 0;
51-
border-width: 2px !important;
5253
border-radius: 50px !important;
5354
height: 48px;
5455
padding: 12px 24px !important;
5556
color: #137d60 !important;
56-
border-color: #137d60 !important;
57+
border: 2px solid #137d60 !important;
5758
background: #fff !important;
59+
font-size: 16px;
60+
line-height: 24px;
61+
font-weight: 700;
62+
letter-spacing: 0.008em;
63+
64+
@include xs-to-sm {
65+
width: fit-content;
66+
}
67+
}
68+
69+
.challenge-ops-container .unregisterButtonDisabled {
70+
margin: 5px;
71+
min-width: 0;
72+
border-radius: 50px !important;
73+
height: 48px;
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;
5880
font-weight: 700;
5981
letter-spacing: 0.008em;
6082

@@ -66,11 +88,12 @@
6688
.challenge-ops-container .registerBtn {
6789
margin: 5px;
6890
min-width: 0;
69-
border-width: 2px !important;
7091
border-radius: 50px !important;
7192
height: 48px;
7293
padding: 12px 24px !important;
7394
background-color: #137d60 !important;
95+
font-size: 16px;
96+
line-height: 24px;
7497
font-weight: 700;
7598
letter-spacing: 0.008em;
7699

@@ -82,8 +105,8 @@
82105
.challenge-ops-container .submitButton:hover,
83106
.challenge-ops-container .registerBtn:hover {
84107
color: #fff !important;
85-
border-color: #219174 !important;
86108
background: #219174 !important;
109+
border-color: #219174 !important;
87110
}
88111

89112
.challenge-ops-container .unregisterButton:hover {
@@ -95,11 +118,13 @@
95118
.challenge-ops-container .submitButton:active,
96119
.challenge-ops-container .registerBtn:active {
97120
color: #fff !important;
98-
border-color: #0d664e !important;
99121
background: #0d664e !important;
122+
border-color: #0d664e !important;
100123
}
101124

102125
.challenge-ops-container .unregisterButton:active {
126+
outline: none !important;
127+
box-shadow: none !important;
103128
color: #0d664e !important;
104129
border-color: #0d664e !important;
105130
background: #fff !important;
@@ -110,23 +135,23 @@
110135
.challenge-ops-container .submitButton:focus-visible {
111136
outline: none !important;
112137
box-shadow: none !important;
113-
border: 2px solid #219174 !important;
138+
border-color: #0d664e;
114139
}
115140

116141
.challenge-ops-container .registerBtn:focus,
117142
.challenge-ops-container .registerBtn:focus-within,
118143
.challenge-ops-container .registerBtn:focus-visible {
119144
outline: none !important;
120145
box-shadow: none !important;
121-
border: 2px solid #219174 !important;
146+
border-color: #0d664e;
122147
}
123148

124149
.challenge-ops-container .unregisterButton:focus,
125150
.challenge-ops-container .unregisterButton:focus-within,
126151
.challenge-ops-container .unregisterButton:focus-visible {
127152
outline: none !important;
128153
box-shadow: none !important;
129-
border: 2px solid #0d664e !important;
154+
border-color: #0d664e;
130155
}
131156

132157
.challenge-ops-container {

0 commit comments

Comments
 (0)