Skip to content

Commit 0fc7f92

Browse files
committed
Merge pull request #3129 from r0hit-gupta/auth-btn-fix
Fix login button for screen reader
1 parent 0aa4c67 commit 0fc7f92

File tree

2 files changed

+6
-0
lines changed
  • __tests__/shared/components/TopcoderHeader/__snapshots__
  • src/shared/components/TopcoderHeader/Auth

2 files changed

+6
-0
lines changed

__tests__/shared/components/TopcoderHeader/__snapshots__/Auth.jsx.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ exports[`Snapshot match 1`] = `
77
<a
88
className="tc-btn-sm tc-btn-primary"
99
href="http://accounts.topcoder-dev.com/member/registration?utm_source=community-app-main"
10+
role="button"
1011
>
1112
Join
1213
</a>
1314
<a
1415
className="tc-btn-sm tc-btn-default"
1516
href="http://accounts.topcoder-dev.com/member?utm_source=community-app-main"
1617
onClick={[Function]}
18+
role="button"
1719
>
1820
Log In
1921
</a>
@@ -27,13 +29,15 @@ exports[`Snapshot match 2`] = `
2729
<a
2830
className="tc-btn-sm tc-btn-primary"
2931
href="http://accounts.topcoder-dev.com/member/registration?utm_source=community-app-main"
32+
role="button"
3033
>
3134
Join
3235
</a>
3336
<a
3437
className="tc-btn-sm tc-btn-default"
3538
href="http://accounts.topcoder-dev.com/member?utm_source=community-app-main"
3639
onClick={[Function]}
40+
role="button"
3741
>
3842
Log In
3943
</a>

src/shared/components/TopcoderHeader/Auth/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default function Auth({ column }) {
1919
<a
2020
className="tc-btn-sm tc-btn-primary"
2121
href={`${config.URL.AUTH}/member/registration?utm_source=community-app-main`}
22+
role="button"
2223
>
2324
Join
2425
</a>
@@ -30,6 +31,7 @@ Join
3031
window.location = `${config.URL.AUTH}/member?retUrl=${retUrl}&utm_source=community-app-main`;
3132
event.preventDefault();
3233
}}
34+
role="button"
3335
>
3436
Log In
3537
</a>

0 commit comments

Comments
 (0)