File tree Expand file tree Collapse file tree 10 files changed +24
-24
lines changed
ReviewOpportunityDetailsPage
challenge-listing/Listing Expand file tree Collapse file tree 10 files changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export default function Dashboard({
44
44
} ) {
45
45
return (
46
46
< div styleName = "container" >
47
- < div styleName = "page" >
47
+ < div styleName = "page" role = "main" >
48
48
< Header
49
49
achievements = { achievements }
50
50
achievementsLoading = { achievementsLoading }
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ class ProfileStats extends React.Component {
80
80
}
81
81
82
82
return (
83
- < div styleName = "profile-subtrack-container" >
83
+ < div styleName = "profile-subtrack-container" role = "main" >
84
84
< div styleName = "content" >
85
85
< div styleName = "page-state-header" >
86
86
< header >
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ class ProfilePage extends React.Component {
167
167
/>
168
168
)
169
169
}
170
- < div styleName = "profile-container" >
170
+ < div styleName = "profile-container" role = "main" >
171
171
< div styleName = "about-container" >
172
172
< div styleName = "profile-header-container" >
173
173
< Sticky
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const ReviewOpportunityDetailsPage = ({
38
38
toggleRole,
39
39
} ) => (
40
40
< div styleName = "outer-container" >
41
- < div styleName = "page" >
41
+ < div styleName = "page" role = "main" >
42
42
43
43
< div styleName = "header" >
44
44
< h1 styleName = "challenge-title" >
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ function SubmissionsPage(props) {
40
40
41
41
return (
42
42
< div styleName = "container" >
43
- < div styleName = "content" >
43
+ < div styleName = "content" role = "main" >
44
44
< Header
45
45
challengeId = { challengeId }
46
46
challengesUrl = { challengesUrl }
Original file line number Diff line number Diff line change @@ -33,26 +33,24 @@ export default function TopcoderFooter() {
33
33
const base = config . URL . BASE ;
34
34
const currentYear = moment ( ) . year ( ) ;
35
35
return (
36
- < div styleName = "footer" >
37
- < nav >
38
- < ul >
39
- < Link to = { `${ base } /community/about` } >
36
+ < div styleName = "footer" role = "contentinfo" >
37
+ < ul >
38
+ < Link to = { `${ base } /community/about` } >
40
39
ABOUT US
41
- </ Link >
42
- < Link to = { `${ base } /community/contact` } >
40
+ </ Link >
41
+ < Link to = { `${ base } /community/contact` } >
43
42
CONTACT US
44
- </ Link >
45
- < Link to = { config . URL . HELP } >
43
+ </ Link >
44
+ < Link to = { config . URL . HELP } >
46
45
HELP CENTER
47
- </ Link >
48
- < Link to = { `${ base } /community/how-it-works/privacy-policy/` } >
46
+ </ Link >
47
+ < Link to = { `${ base } /community/how-it-works/privacy-policy/` } >
49
48
PRIVACY POLICY
50
- </ Link >
51
- < Link to = { `${ base } /community/how-it-works/terms/` } >
49
+ </ Link >
50
+ < Link to = { `${ base } /community/how-it-works/terms/` } >
52
51
TERMS
53
- </ Link >
54
- </ ul >
55
- </ nav >
52
+ </ Link >
53
+ </ ul >
56
54
< div styleName = "social-links" >
57
55
< hr />
58
56
< a href = "https://www.facebook.com/topcoder" target = "fbwindow" >
Original file line number Diff line number Diff line change @@ -337,6 +337,7 @@ export default class TopcoderHeader extends React.Component {
337
337
return (
338
338
< div
339
339
styleName = "header"
340
+ role = "banner"
340
341
ref = { ( div ) => { this . headerRoot = div ; } }
341
342
onMouseLeave = { ( ) => {
342
343
if ( openedMenu ) {
@@ -351,7 +352,7 @@ export default class TopcoderHeader extends React.Component {
351
352
< a href = { BASE_URL } styleName = "logo" aria-label = "Topcoder Homepage" >
352
353
< LogoTopcoderWithName height = { 53 } width = { 135 } />
353
354
</ a >
354
- < ul styleName = "main-menu" ref = { ( ul ) => { this . mainMenu = ul ; } } >
355
+ < ul styleName = "main-menu" role = "navigation" ref = { ( ul ) => { this . mainMenu = ul ; } } >
355
356
{ mainMenu }
356
357
</ ul >
357
358
< div styleName = "right-menu" >
@@ -401,6 +402,7 @@ export default class TopcoderHeader extends React.Component {
401
402
styleName = "search-field"
402
403
>
403
404
< input
405
+ role = "search"
404
406
ref = { ( input ) => { this . searchInput = input ; } }
405
407
onKeyPress = { ( event ) => {
406
408
if ( event . key === 'Enter' ) {
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class SubmissionManagementPageContainer extends React.Component {
81
81
82
82
return (
83
83
< div styleName = "outer-container" >
84
- < div styleName = "submission-management-container" >
84
+ < div styleName = "submission-management-container" role = "main" >
85
85
{ ! isEmpty
86
86
&& (
87
87
< SubmissionManagement
Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ class ChallengeDetailPageContainer extends React.Component {
284
284
285
285
return (
286
286
< div styleName = "outer-container" >
287
- < div styleName = "challenge-detail-container" >
287
+ < div styleName = "challenge-detail-container" role = "main" >
288
288
{ Boolean ( isEmpty ) && (
289
289
< div styleName = "page" >
290
290
Challenge #
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ export class ListingContainer extends React.Component {
237
237
}
238
238
239
239
return (
240
- < div styleName = "container" >
240
+ < div styleName = "container" role = "main" >
241
241
< MetaTags
242
242
description = { description }
243
243
image = { ogImage }
You can’t perform that action at this time.
0 commit comments