Skip to content

Commit 388f570

Browse files
committed
Merge pull request #67 from lukfugl/aria-labelledby
use correct spelling of aria-labelledby
2 parents 1112243 + baaa587 commit 388f570

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/components/TabPanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = React.createClass({
4444
)}
4545
role="tabpanel"
4646
id={this.props.id}
47-
aria-labeledby={this.props.tabId}
47+
aria-labelledby={this.props.tabId}
4848
style={{display: this.props.selected ? null : 'none'}}
4949
>
5050
{children}

lib/components/__tests__/TabPanel-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('Tab', function() {
1212

1313
equal(node.className, 'ReactTabs__TabPanel');
1414
equal(node.getAttribute('role'), 'tabpanel');
15-
equal(node.getAttribute('aria-labeledby'), null);
15+
equal(node.getAttribute('aria-labelledby'), null);
1616
equal(node.getAttribute('id'), null);
1717
equal(node.innerHTML, '');
1818
equal(node.style.display, 'none');
@@ -30,7 +30,7 @@ describe('Tab', function() {
3030
const node = findDOMNode(tabPanel);
3131

3232
equal(node.className, 'ReactTabs__TabPanel ReactTabs__TabPanel--selected');
33-
equal(node.getAttribute('aria-labeledby'), '1234');
33+
equal(node.getAttribute('aria-labelledby'), '1234');
3434
equal(node.getAttribute('id'), 'abcd');
3535
equal(node.innerHTML, 'Hola');
3636
equal(node.style.display, '');

lib/components/__tests__/Tabs-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe('react-tabs', function() {
9393
equal(panel.getAttribute('role'), 'tabpanel');
9494

9595
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'));
9797
}
9898

9999
equal(findDOMNode(tabs.getTab(3)).getAttribute('aria-disabled'), 'true');

0 commit comments

Comments
 (0)