Skip to content

Commit ec062c1

Browse files
committed
Accordion: Removed ui-accordion-disabled class. Fixes #8193 - Accordion: Remove ui-accordion-disabled class.
1 parent 575baa0 commit ec062c1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ui/jquery.ui.accordion.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ $.widget( "ui.accordion", {
134134
// clean up headers
135135
this.headers
136136
.unbind( ".accordion" )
137-
.removeClass( "ui-accordion-header ui-accordion-header-active ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top" )
137+
.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" )
138138
.removeAttr( "role" )
139139
.removeAttr( "aria-expanded" )
140140
.removeAttr( "aria-selected" )
@@ -145,7 +145,7 @@ $.widget( "ui.accordion", {
145145
var contents = this.headers.next()
146146
.css( "display", "" )
147147
.removeAttr( "role" )
148-
.removeClass( "ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled" );
148+
.removeClass( "ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled" );
149149
if ( this.options.heightStyle !== "content" ) {
150150
this.element.css( "height", this.originalHeight );
151151
contents.css( "height", "" );
@@ -185,9 +185,7 @@ $.widget( "ui.accordion", {
185185
// so we need to add the disabled class to the headers and panels
186186
if ( key === "disabled" ) {
187187
this.headers.add( this.headers.next() )
188-
// TODO: why do we have an accordion-specific disabled class?
189-
// widget-specific classes seem to exist in a lot of plugins
190-
.toggleClass( "ui-accordion-disabled ui-state-disabled", !!value );
188+
.toggleClass( "ui-state-disabled", !!value );
191189
}
192190
},
193191

0 commit comments

Comments
 (0)