File tree Expand file tree Collapse file tree 4 files changed +136
-107
lines changed Expand file tree Collapse file tree 4 files changed +136
-107
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ class StickyResponsiveSidebar extends Component {
149
149
} }
150
150
onClick = { this . _openNavMenu }
151
151
role = "button"
152
- tabIndex = "-1" >
152
+ tabIndex = { 0 } >
153
153
< Container >
154
154
< div
155
155
css = { {
Original file line number Diff line number Diff line change 12
12
import React from 'react' ;
13
13
import { colors } from 'theme' ;
14
14
15
- const MetaTitle = ( {
16
- children,
17
- title,
18
- cssProps = { } ,
19
- onClick,
20
- onDark = false ,
21
- } ) => (
15
+ const MetaTitle = ( { children, title, cssProps = { } , onDark = false } ) => (
22
16
< div
23
- onClick = { onClick }
24
17
css = { {
25
18
color : onDark ? colors . subtleOnDark : colors . subtle ,
26
- cursor : onClick ? 'pointer' : null ,
27
19
fontSize : 14 ,
28
20
fontWeight : 700 ,
29
21
lineHeight : 3 ,
30
22
textTransform : 'uppercase' ,
31
23
letterSpacing : '0.08em' ,
32
24
...cssProps ,
33
- } }
34
- role = "link"
35
- tabIndex = "-1" >
25
+ } } >
36
26
{ children }
37
27
</ div >
38
28
) ;
Original file line number Diff line number Diff line change @@ -26,32 +26,35 @@ const Section = ({
26
26
section,
27
27
} ) => (
28
28
< div >
29
- < MetaTitle
30
- onClick = { onSectionTitleClick }
31
- cssProps = { {
32
- marginTop : 10 ,
29
+ < button
30
+ css = { { cursor : 'pointer' , backgroundColor : 'transparent' , border : 0 } }
31
+ onClick = { onSectionTitleClick } >
32
+ < MetaTitle
33
+ cssProps = { {
34
+ marginTop : 10 ,
33
35
34
- [ media . greaterThan ( 'small' ) ] : {
35
- color : isActive ? colors . text : colors . subtle ,
36
+ [ media . greaterThan ( 'small' ) ] : {
37
+ color : isActive ? colors . text : colors . subtle ,
36
38
37
- ':hover' : {
38
- color : colors . text ,
39
+ ':hover' : {
40
+ color : colors . text ,
41
+ } ,
39
42
} ,
40
- } ,
41
- } } >
42
- { section . title }
43
- < ChevronSvg
44
- cssProps = { {
45
- marginLeft : 7 ,
46
- transform : isActive ? 'rotateX(180deg)' : 'rotateX(0deg)' ,
47
- transition : 'transform 0.2s ease' ,
43
+ } } >
44
+ { section . title }
45
+ < ChevronSvg
46
+ cssProps = { {
47
+ marginLeft : 7 ,
48
+ transform : isActive ? 'rotateX(180deg)' : 'rotateX(0deg)' ,
49
+ transition : 'transform 0.2s ease' ,
48
50
49
- [ media . lessThan ( 'small' ) ] : {
50
- display : 'none' ,
51
- } ,
52
- } }
53
- />
54
- </ MetaTitle >
51
+ [ media . lessThan ( 'small' ) ] : {
52
+ display : 'none' ,
53
+ } ,
54
+ } }
55
+ />
56
+ </ MetaTitle >
57
+ </ button >
55
58
< ul
56
59
css = { {
57
60
marginBottom : 10 ,
You can’t perform that action at this time.
0 commit comments