File tree 8 files changed +48
-15
lines changed
src/components/components
member-training-resources
8 files changed +48
-15
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ export default props => {
17
17
18
18
return (
19
19
< div >
20
- < h2 className = "teaser-box__list-title" > Latest announcements </ h2 >
21
- < div >
20
+ < h2 className = "teaser-box__list-title" id = "announcements" >
21
+ Latest announcements
22
+ </ h2 >
23
+ < div aria-labelledby = "announcements" >
22
24
< TeaserBoxList items = { items } dummyData = { props . dummyData } />
23
25
</ div >
24
26
</ div >
Original file line number Diff line number Diff line change @@ -20,17 +20,23 @@ export const ClubTeaser = props => {
20
20
const image = props . club . imageUrl ;
21
21
const classes = props . className ? props . className : "" ;
22
22
return (
23
- < Link to = { `/clubs/${ props . club . id } ` } className = { `${ classes } club-teaser` } >
23
+ < Link
24
+ to = { `/clubs/${ props . club . id } ` }
25
+ className = { `${ classes } club-teaser` }
26
+ aria-labelledby = { title . replace ( / \s / g, "" ) }
27
+ >
24
28
< ShadowBox className = "club-teaser__inner" >
25
29
< div className = "club-teaser__image-wrapper" >
26
30
< img
27
31
src = { image || groupSmallImage }
28
- alt = { title }
32
+ alt = { ` ${ title } club logo` }
29
33
className = "club-teaser__image"
30
34
/>
31
35
</ div >
32
36
< div className = "club-teaser__text" >
33
- < h2 className = "club-teaser__title" > { title } </ h2 >
37
+ < h2 className = "club-teaser__title" id = { title . replace ( / \s / g, "" ) } >
38
+ { title }
39
+ </ h2 >
34
40
< span className = "club-teaser__description" > { subtitle } </ span >
35
41
< div className = "button button--x-small club-teaser__button" >
36
42
Club page < ChevronRight size = { 16 } className = "icon" />
Original file line number Diff line number Diff line change @@ -43,10 +43,18 @@ export const ChannelList = props => {
43
43
44
44
return (
45
45
< div className = "communication-channels__list" >
46
- < h2 className = "communication-channels__list-title title title--x-small" >
46
+ < h2
47
+ className = "communication-channels__list-title title title--x-small"
48
+ id = "communication"
49
+ >
47
50
Communication channels
48
51
</ h2 >
49
- < div className = "communication-channels__list-wrapper" > { channels } </ div >
52
+ < div
53
+ className = "communication-channels__list-wrapper"
54
+ aria-labelledby = "communication"
55
+ >
56
+ { channels }
57
+ </ div >
50
58
</ div >
51
59
) ;
52
60
} ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export const ContributingToolSet = props => {
25
25
26
26
return (
27
27
< div >
28
- < h2 > Tools for contributing code to open source projects </ h2 >
28
+ < h2 > Tools for contributing code to open source projects</ h2 >
29
29
< MediaQuery maxWidth = { 767 } >
30
30
< LayoutScroll > { tools } </ LayoutScroll >
31
31
</ MediaQuery >
Original file line number Diff line number Diff line change @@ -13,9 +13,16 @@ export default props => {
13
13
< div className = { classes } >
14
14
< ShadowBox >
15
15
< div className = "faq__group-header" >
16
- < h2 title = "title title--x-small" > { props . header } </ h2 >
16
+ < h2 title = "title title--x-small" id = { props . header . replace ( / \s / g, "" ) } >
17
+ { props . header }
18
+ </ h2 >
17
19
</ div >
18
- < ul className = "faq__group-content" > { props . children } </ ul >
20
+ < ul
21
+ className = "faq__group-content"
22
+ aria-labelledby = { props . header . replace ( / \s / g, "" ) }
23
+ >
24
+ { props . children }
25
+ </ ul >
19
26
</ ShadowBox >
20
27
</ div >
21
28
) ;
Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ export default props => {
17
17
18
18
return (
19
19
< div >
20
- < h2 className = "teaser-box__list-title" > Jobs & internships board </ h2 >
21
- < div >
20
+ < h2 className = "teaser-box__list-title" id = "jobs" >
21
+ Jobs & internships board
22
+ </ h2 >
23
+ < div aria-labelledby = "jobs" >
22
24
< TeaserBoxList items = { items } dummyData = { props . dummyData } />
23
25
</ div >
24
26
</ div >
Original file line number Diff line number Diff line change @@ -56,7 +56,11 @@ export class LeaderToolList extends React.PureComponent {
56
56
* Creates the tool header.
57
57
*/
58
58
getSimpleHeader ( ) {
59
- return < span className = "title title--x-small" > { this . props . title } </ span > ;
59
+ return (
60
+ < span className = "title title--x-small" id = { this . props . detailsId } >
61
+ { this . props . title }
62
+ </ span >
63
+ ) ;
60
64
}
61
65
62
66
/**
@@ -123,6 +127,7 @@ export class LeaderToolList extends React.PureComponent {
123
127
className = "leader-tools-list"
124
128
hidden = { hideDetails }
125
129
aria-hidden = { hideDetails }
130
+ aria-labelledby = { this . props . detailsId }
126
131
>
127
132
{ tools }
128
133
</ ul >
Original file line number Diff line number Diff line change @@ -64,10 +64,13 @@ export default props => {
64
64
65
65
return (
66
66
< LayoutContained >
67
- < h2 className = "member-training-resources__list-title" >
67
+ < h2 className = "member-training-resources__list-title" id = "resources" >
68
68
Training & various resources
69
69
</ h2 >
70
- < div className = "member-training-resources__list" >
70
+ < div
71
+ className = "member-training-resources__list"
72
+ aria-labelledby = "resources"
73
+ >
71
74
< MediaQuery maxWidth = { 767 } >
72
75
< LayoutScroll stretchItems > { resources } </ LayoutScroll >
73
76
</ MediaQuery >
You can’t perform that action at this time.
0 commit comments