diff options
author | TJ VanToll <tj.vantoll@gmail.com> | 2013-07-19 06:32:49 -0400 |
---|---|---|
committer | TJ VanToll <tj.vantoll@gmail.com> | 2013-07-20 17:27:49 -0400 |
commit | 9470af0bbefafa3d81c3709674a45a54b693e7cf (patch) | |
tree | 860430d08cf817e8fa1b2b8349a5d1ae76b8e3de | |
parent | bc857424a36fb33eda80f69454b123b226ec1685 (diff) | |
download | jquery-ui-9470af0bbefafa3d81c3709674a45a54b693e7cf.tar.gz jquery-ui-9470af0bbefafa3d81c3709674a45a54b693e7cf.zip |
Accordion: Avoid resetting outline on headers. Fixes #9352: Accordion - Active header has no focus indicator
-rw-r--r-- | themes/base/jquery.ui.accordion.css | 3 | ||||
-rw-r--r-- | ui/jquery.ui.accordion.js | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/themes/base/jquery.ui.accordion.css b/themes/base/jquery.ui.accordion.css index 56ff2af5c..d05b484c5 100644 --- a/themes/base/jquery.ui.accordion.css +++ b/themes/base/jquery.ui.accordion.css @@ -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; diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 3b515e314..26a9ce94f 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -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" ) |