Permalink
Browse files

Accordion: Avoid resetting outline on headers. Fixes #9352: Accordion…

… - Active header has no focus indicator
  • Loading branch information...
tjvantoll committed Jul 19, 2013
1 parent bc85742 commit 9470af0bbefafa3d81c3709674a45a54b693e7cf
Showing with 4 additions and 3 deletions.
  1. +2 −1 themes/base/jquery.ui.accordion.css
  2. +2 −2 ui/jquery.ui.accordion.js
@@ -12,9 +12,10 @@
display: block;
cursor: pointer;
position: relative;
margin-top: 2px;
margin: 2px 0 0 0;
padding: .5em .5em .5em .7em;
min-height: 0; /* support: IE7 */
font-size: 100%;
}
.ui-accordion .ui-accordion-icons {
padding-left: 2.2em;
@@ -99,7 +99,7 @@ $.widget( "ui.accordion", {
// clean up headers
this.headers
.removeClass( "ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top" )
.removeClass( "ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top" )
.removeAttr( "role" )
.removeAttr( "aria-selected" )
.removeAttr( "aria-controls" )
@@ -247,7 +247,7 @@ $.widget( "ui.accordion", {
_processPanels: function() {
this.headers = this.element.find( this.options.header )
.addClass( "ui-accordion-header ui-helper-reset ui-state-default ui-corner-all" );
.addClass( "ui-accordion-header ui-state-default ui-corner-all" );
this.headers.next()
.addClass( "ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom" )

0 comments on commit 9470af0

Please sign in to comment.