Skip to content

Commit 9fbdb80

Browse files
committed
Remove aria-expanded attribute (#71)
1 parent d420159 commit 9fbdb80

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/components/Tab.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ module.exports = React.createClass({
7272
role="tab"
7373
id={id}
7474
aria-selected={selected ? 'true' : 'false'}
75-
aria-expanded={selected ? 'true' : 'false'}
7675
aria-disabled={disabled ? 'true' : 'false'}
7776
aria-controls={panelId}
7877
tabIndex={selected ? '0' : null}

src/components/__tests__/Tab-test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ describe('<Tab />', () => {
1010
expect(wrapper.hasClass('ReactTabs__Tab')).toBe(true);
1111
expect(wrapper.prop('role')).toBe('tab');
1212
expect(wrapper.prop('aria-selected')).toBe('false');
13-
expect(wrapper.prop('aria-expanded')).toBe('false');
1413
expect(wrapper.prop('aria-disabled')).toBe('false');
1514
expect(wrapper.prop('aria-controls')).toBe(null);
1615
expect(wrapper.prop('id')).toBe(null);
@@ -30,7 +29,6 @@ describe('<Tab />', () => {
3029
expect(wrapper.hasClass('ReactTabs__Tab')).toBe(true);
3130
expect(wrapper.hasClass('ReactTabs__Tab--selected')).toBe(true);
3231
expect(wrapper.prop('aria-selected')).toBe('true');
33-
expect(wrapper.prop('aria-expanded')).toBe('true');
3432
expect(wrapper.prop('aria-disabled')).toBe('false');
3533
expect(wrapper.prop('aria-controls')).toBe('1234');
3634
expect(wrapper.prop('id')).toBe('abcd');

0 commit comments

Comments
 (0)