@@ -230,12 +230,8 @@ $.widget( "ui.spinner", {
230
230
231
231
// Add buttons
232
232
. append (
233
- "<a>" +
234
- "<span>▲</span>" +
235
- "</a>" +
236
- "<a>" +
237
- "<span>▼</span>" +
238
- "</a>"
233
+ "<a></a>" +
234
+ "<a></a>"
239
235
) ;
240
236
} ,
241
237
@@ -250,6 +246,7 @@ $.widget( "ui.spinner", {
250
246
// Button bindings
251
247
this . buttons = this . uiSpinner . children ( "a" )
252
248
. attr ( "tabIndex" , - 1 )
249
+ . attr ( "aria-hidden" , true )
253
250
. button ( {
254
251
classes : {
255
252
"ui-button" : ""
@@ -261,8 +258,14 @@ $.widget( "ui.spinner", {
261
258
262
259
this . _addClass ( this . buttons . first ( ) , "ui-spinner-button ui-spinner-up" ) ;
263
260
this . _addClass ( this . buttons . last ( ) , "ui-spinner-button ui-spinner-down" ) ;
264
- this . buttons . first ( ) . button ( "option" , "icon" , this . options . icons . up ) ;
265
- this . buttons . last ( ) . button ( "option" , "icon" , this . options . icons . down ) ;
261
+ this . buttons . first ( ) . button ( {
262
+ "icon" : this . options . icons . up ,
263
+ "showLabel" : false
264
+ } ) ;
265
+ this . buttons . last ( ) . button ( {
266
+ "icon" : this . options . icons . down ,
267
+ "showLabel" : false
268
+ } ) ;
266
269
267
270
// IE 6 doesn't understand height: 50% for the buttons
268
271
// unless the wrapper has an explicit height
@@ -562,12 +565,8 @@ if ( $.uiBackCompat !== false ) {
562
565
563
566
_buttonHtml : function ( ) {
564
567
return "" +
565
- "<a>" +
566
- "<span>▲</span>" +
567
- "</a>" +
568
- "<a>" +
569
- "<span>▼</span>" +
570
- "</a>" ;
568
+ "<a></a>" +
569
+ "<a></a>" ;
571
570
}
572
571
} ) ;
573
572
}
0 commit comments