Skip to content
Browse files

Merge pull request #2609 from Wilto/voiceover-double-buttons

Fixes #2594 — Button text is no longer read aloud twice. Thanks @Wilto!
  • Loading branch information...
2 parents 8f8c43f + 1f4d946 commit b1a745a4cac525749621ac2169aa7e518fbeddd9 @toddparker toddparker committed Oct 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.buttonMarkup.js
View
2 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 b1a745a

Please sign in to comment.
Something went wrong with that request. Please try again.