Skip to content

Commit b9ffc34

Browse files
milk54scottgonzalez
authored andcommitted
Tabs: Remove presentation role
Fixes #10122 Closes gh-1748
1 parent c481400 commit b9ffc34

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tests/unit/tabs/core.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ QUnit.test( "aria-controls", function( assert ) {
101101
} );
102102

103103
QUnit.test( "accessibility", function( assert ) {
104-
assert.expect( 49 );
104+
assert.expect( 46 );
105105
var element = $( "#tabs1" ).tabs( {
106106
active: 1,
107107
disabled: [ 2 ]
@@ -118,7 +118,6 @@ QUnit.test( "accessibility", function( assert ) {
118118
panel = panels.eq( index );
119119
assert.equal( tab.attr( "role" ), "tab", "tab " + index + " role" );
120120
assert.equal( tab.attr( "aria-labelledby" ), anchorId, "tab " + index + " aria-labelledby" );
121-
assert.equal( anchor.attr( "role" ), "presentation", "anchor " + index + " role" );
122121
assert.equal( anchor.attr( "tabindex" ), -1, "anchor " + index + " tabindex" );
123122
assert.equal( panel.attr( "role" ), "tabpanel", "panel " + index + " role" );
124123
assert.equal( panel.attr( "aria-labelledby" ), anchorId, "panel " + index + " aria-labelledby" );

ui/widgets/tabs.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,6 @@ $.widget( "ui.tabs", {
431431
return $( "a", this )[ 0 ];
432432
} )
433433
.attr( {
434-
role: "presentation",
435434
tabIndex: -1
436435
} );
437436
this._addClass( this.anchors, "ui-tabs-anchor" );

0 commit comments

Comments
 (0)