File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ module.exports = React.createClass({
44
44
) }
45
45
role = "tabpanel"
46
46
id = { this . props . id }
47
- aria-labeledby = { this . props . tabId }
47
+ aria-labelledby = { this . props . tabId }
48
48
style = { { display : this . props . selected ? null : 'none' } }
49
49
>
50
50
{ children }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ describe('Tab', function() {
12
12
13
13
equal ( node . className , 'ReactTabs__TabPanel' ) ;
14
14
equal ( node . getAttribute ( 'role' ) , 'tabpanel' ) ;
15
- equal ( node . getAttribute ( 'aria-labeledby ' ) , null ) ;
15
+ equal ( node . getAttribute ( 'aria-labelledby ' ) , null ) ;
16
16
equal ( node . getAttribute ( 'id' ) , null ) ;
17
17
equal ( node . innerHTML , '' ) ;
18
18
equal ( node . style . display , 'none' ) ;
@@ -30,7 +30,7 @@ describe('Tab', function() {
30
30
const node = findDOMNode ( tabPanel ) ;
31
31
32
32
equal ( node . className , 'ReactTabs__TabPanel ReactTabs__TabPanel--selected' ) ;
33
- equal ( node . getAttribute ( 'aria-labeledby ' ) , '1234' ) ;
33
+ equal ( node . getAttribute ( 'aria-labelledby ' ) , '1234' ) ;
34
34
equal ( node . getAttribute ( 'id' ) , 'abcd' ) ;
35
35
equal ( node . innerHTML , 'Hola' ) ;
36
36
equal ( node . style . display , '' ) ;
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ describe('react-tabs', function() {
93
93
equal ( panel . getAttribute ( 'role' ) , 'tabpanel' ) ;
94
94
95
95
equal ( tab . getAttribute ( 'aria-controls' ) , panel . getAttribute ( 'id' ) ) ;
96
- equal ( panel . getAttribute ( 'aria-labeledby ' ) , tab . getAttribute ( 'id' ) ) ;
96
+ equal ( panel . getAttribute ( 'aria-labelledby ' ) , tab . getAttribute ( 'id' ) ) ;
97
97
}
98
98
99
99
equal ( findDOMNode ( tabs . getTab ( 3 ) ) . getAttribute ( 'aria-disabled' ) , 'true' ) ;
You can’t perform that action at this time.
0 commit comments