Skip to content

Commit e9436fa

Browse files
committed
Button: add classes option
1 parent aa740e9 commit e9436fa

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/unit/button/button_common.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ TestHelpers.commonWidgetTests( "button", {
55
label: null,
66
icon: null,
77
iconPosition: "beginning",
8+
classes: {
9+
"ui-button": "ui-corner-all",
10+
"ui-button-icon-only": null,
11+
"ui-button-icon": null
12+
},
813

914
// Callbacks
1015
create: null

ui/button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $.widget( "ui.button", {
4545
iconPosition: "beginning",
4646
classes: {
4747
"ui-button": "ui-corner-all",
48-
"ui-button-icon-only" : null,
48+
"ui-button-icon-only": null,
4949
"ui-button-icon": null
5050
}
5151
},

0 commit comments

Comments
 (0)