Skip to content

Commit 112185e

Browse files
committed
Spinner: Remove ui-state- classes from spinner, along with the background:none TR override. Fixes #8654 - Spinner background-color
1 parent 025266e commit 112185e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

themes/base/jquery.ui.spinner.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
.ui-spinner-down { bottom: 0; }
1818

1919
/* TR overrides */
20-
span.ui-spinner { background: none; }
2120
.ui-spinner .ui-icon-triangle-1-s {
2221
/* need to fix icons sprite */
2322
background-position:-65px -16px;

ui/jquery.ui.spinner.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ $.widget( "ui.spinner", {
9494
},
9595
keyup: "_stop",
9696
focus: function() {
97-
this.uiSpinner.addClass( "ui-state-active" );
9897
this.previous = this.element.val();
9998
},
10099
blur: function( event ) {
@@ -104,7 +103,6 @@ $.widget( "ui.spinner", {
104103
}
105104

106105
this._refresh();
107-
this.uiSpinner.removeClass( "ui-state-active" );
108106
if ( this.previous !== this.element.val() ) {
109107
this._trigger( "change", event );
110108
}
@@ -196,7 +194,6 @@ $.widget( "ui.spinner", {
196194
.parent()
197195
// add buttons
198196
.append( this._buttonHtml() );
199-
this._hoverable( uiSpinner );
200197

201198
this.element.attr( "role", "spinbutton" );
202199

@@ -242,7 +239,7 @@ $.widget( "ui.spinner", {
242239
},
243240

244241
_uiSpinnerHtml: function() {
245-
return "<span class='ui-spinner ui-state-default ui-widget ui-widget-content ui-corner-all'></span>";
242+
return "<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>";
246243
},
247244

248245
_buttonHtml: function() {

0 commit comments

Comments
 (0)