diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-08-14 10:16:05 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-10-08 14:02:47 -0400 |
commit | 739e71911e262d2e653216e5d33fc486c39f59ec (patch) | |
tree | 72a1b0676ffc133db8ed4b56939066034747c057 /ui | |
parent | eae5671dc551d09d03c0076f67680d4ada015bfc (diff) | |
download | jquery-ui-739e71911e262d2e653216e5d33fc486c39f59ec.tar.gz jquery-ui-739e71911e262d2e653216e5d33fc486c39f59ec.zip |
Spinner: Update markup for buttons
Diffstat (limited to 'ui')
-rw-r--r-- | ui/widgets/spinner.js | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/ui/widgets/spinner.js b/ui/widgets/spinner.js index 3a0b6deef..1c7e9b364 100644 --- a/ui/widgets/spinner.js +++ b/ui/widgets/spinner.js @@ -230,12 +230,8 @@ $.widget( "ui.spinner", { // Add buttons .append( - "<a>" + - "<span>▲</span>" + - "</a>" + - "<a>" + - "<span>▼</span>" + - "</a>" + "<a></a>" + + "<a></a>" ); }, @@ -250,6 +246,7 @@ $.widget( "ui.spinner", { // Button bindings this.buttons = this.uiSpinner.children( "a" ) .attr( "tabIndex", -1 ) + .attr( "aria-hidden", true ) .button( { classes: { "ui-button": "" @@ -261,8 +258,14 @@ $.widget( "ui.spinner", { 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 @@ -562,12 +565,8 @@ if ( $.uiBackCompat !== false ) { _buttonHtml: function() { return "" + - "<a>" + - "<span>▲</span>" + - "</a>" + - "<a>" + - "<span>▼</span>" + - "</a>"; + "<a></a>" + + "<a></a>"; } } ); } |