// Add buttons
.append(
- "<a>" +
- "<span>▲</span>" +
- "</a>" +
- "<a>" +
- "<span>▼</span>" +
- "</a>"
+ "<a></a>" +
+ "<a></a>"
);
},
// Button bindings
this.buttons = this.uiSpinner.children( "a" )
.attr( "tabIndex", -1 )
+ .attr( "aria-hidden", true )
.button( {
classes: {
"ui-button": ""
this._addClass( this.buttons.first(), "ui-spinner-button ui-spinner-up" );
this._addClass( this.buttons.last(), "ui-spinner-button ui-spinner-down" );
- this.buttons.first().button( "option", "icon", this.options.icons.up );
- this.buttons.last().button( "option", "icon", this.options.icons.down );
+ this.buttons.first().button( {
+ "icon": this.options.icons.up,
+ "showLabel": false
+ } );
+ this.buttons.last().button({
+ "icon": this.options.icons.down,
+ "showLabel": false
+ } );
// IE 6 doesn't understand height: 50% for the buttons
// unless the wrapper has an explicit height
_buttonHtml: function() {
return "" +
- "<a>" +
- "<span>▲</span>" +
- "</a>" +
- "<a>" +
- "<span>▼</span>" +
- "</a>";
+ "<a></a>" +
+ "<a></a>";
}
} );
}