We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54304ef commit fdb2867Copy full SHA for fdb2867
ui/button.js
@@ -124,10 +124,11 @@ $.widget( "ui.button", {
124
_updateIcon: function( icon ) {
125
if ( !this.icon ) {
126
this.icon = $( "<span>" ).addClass( this._classes( "ui-button-icon" ) + " ui-icon" );
127
- this.element.addClass( "ui-icon-" + this.options.iconPosition );
128
129
if ( !this.options.showLabel ){
130
this.element.addClass( this._classes( "ui-button-icon-only" ) );
+ } else {
131
+ this.element.addClass( "ui-icon-" + this.options.iconPosition );
132
}
133
} else {
134
this.icon.removeClass( this.options.icon );
0 commit comments