Skip to content

Commit 25a0f08

Browse files
authored
fix: fixed styling of buttons (#1250)
* fix: fixed styling of buttons * test: updated test snapshots
1 parent cb0af0d commit 25a0f08

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

src/profile/CertificateCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const CertificateCard = ({
9797
target="_blank"
9898
showLaunchIcon={false}
9999
className={classNames(
100-
'btn btn-primary btn-rounded font-weight-normal px-4 py-10px',
100+
'btn btn-primary font-weight-normal px-4 py-10px',
101101
{ 'btn-sm': isMobileView },
102102
)}
103103
>

src/profile/ProfilePage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const ProfilePage = ({ params }) => {
134134
return (
135135
<Hyperlink
136136
className={classNames(
137-
'btn btn-brand bg-brand-500 btn-rounded font-weight-normal px-4 py-10px text-nowrap',
137+
'btn btn-brand bg-brand-500 font-weight-normal px-4 py-10px text-nowrap',
138138
{ 'w-100': isMobileView },
139139
)}
140140
target="_blank"

src/profile/__snapshots__/ProfilePage.test.jsx.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ exports[`<ProfilePage /> Renders correctly in various states viewing own profile
671671
class="p-0 col-auto"
672672
>
673673
<a
674-
class="pgn__hyperlink default-link standalone-link btn btn-brand bg-brand-500 btn-rounded font-weight-normal px-4 py-10px text-nowrap"
674+
class="pgn__hyperlink default-link standalone-link btn btn-brand bg-brand-500 font-weight-normal px-4 py-10px text-nowrap"
675675
href="http://localhost:18150/records"
676676
rel="noopener noreferrer"
677677
target="_blank"
@@ -1442,7 +1442,7 @@ exports[`<ProfilePage /> Renders correctly in various states viewing own profile
14421442
class="pt-3"
14431443
>
14441444
<a
1445-
class="pgn__hyperlink default-link standalone-link btn btn-primary btn-rounded font-weight-normal px-4 py-10px"
1445+
class="pgn__hyperlink default-link standalone-link btn btn-primary font-weight-normal px-4 py-10px"
14461446
href="http://www.example.com/"
14471447
rel="noopener noreferrer"
14481448
target="_blank"
@@ -2358,7 +2358,7 @@ exports[`<ProfilePage /> Renders correctly in various states without credentials
23582358
class="pt-3"
23592359
>
23602360
<a
2361-
class="pgn__hyperlink default-link standalone-link btn btn-primary btn-rounded font-weight-normal px-4 py-10px"
2361+
class="pgn__hyperlink default-link standalone-link btn btn-primary font-weight-normal px-4 py-10px"
23622362
href="http://www.example.com/"
23632363
rel="noopener noreferrer"
23642364
target="_blank"

src/profile/index.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,6 @@
164164

165165
// Todo: Move the following to edx-paragon
166166

167-
.btn-rounded {
168-
border-radius: 100px;
169-
}
170-
171167
.min-width-179px {
172168
min-width: 179px;
173169
}

0 commit comments

Comments
 (0)