Permalink
Browse files

Fixes #2594 — Button text is no longer read aloud twice (and treated …

…as two separate navigable items) in iOS VoiceOver.
  • Loading branch information...
1 parent 4ed1e6a commit 3c3a777158a4dabdaec4723284dbf33cc6a454e4 @Wilto Wilto committed Oct 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.buttonMarkup.js
@@ -70,7 +70,7 @@ $.fn.buttonMarkup = function( options ) {
el.attr( "data-" + $.mobile.ns + "theme", o.theme )
.addClass( buttonClass );
- wrap = ( "<D class='" + innerClass + "'><D class='ui-btn-text'></D>" +
+ wrap = ( "<D class='" + innerClass + "' aria-hidden='true'><D class='ui-btn-text'></D>" +
( o.icon ? "<span class='" + iconClass + "'></span>" : "" ) +
"</D>" ).replace( /D/g, o.wrapperEls );

0 comments on commit 3c3a777

Please sign in to comment.