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 5d6f5c5 commit 6a388fcCopy full SHA for 6a388fc
ui/button.js
@@ -153,6 +153,23 @@ $.widget( "ui.button", {
153
}
154
},
155
156
+ _elementsFromClassKey: function( classKey ) {
157
+ switch ( classKey ) {
158
+ case "ui-button-icon-only":
159
+ if ( this.options.showLabel ) {
160
+ return $();
161
+ }
162
+ break;
163
+ case "ui-button-icon":
164
+ if ( this.icon ) {
165
+ return this.icon;
166
167
168
+ default:
169
+ return this._superApply( arguments );
170
171
+ },
172
+
173
_setOption: function( key, value ) {
174
if ( key === "icon" ) {
175
if ( value !== null ) {
0 commit comments