1 From 61d133a822b45b01bb31985c8b8142457d17b5c7 Mon Sep 17 00:00:00 2001
2 From: Woosung Sohn <woosungim.sohn@samsung.com>
3 Date: Tue, 19 Mar 2013 15:20:13 +0900
4 Subject: [PATCH] JQM Support accessibility for collapsible
6 Change-Id: Iaa49fa1ff977230320daf9380dfe6ec3cbb72080
8 .../jquery-mobile-1.2.0/js/widgets/collapsible.js | 8 +++++---
9 1 file changed, 5 insertions(+), 3 deletions(-)
11 diff --git a/libs/js/jquery-mobile-1.2.0/js/widgets/collapsible.js b/libs/js/jquery-mobile-1.2.0/js/widgets/collapsible.js
12 index 26dbb61..8398de4 100644
13 --- a/libs/js/jquery-mobile-1.2.0/js/widgets/collapsible.js
14 +++ b/libs/js/jquery-mobile-1.2.0/js/widgets/collapsible.js
15 @@ -11,8 +11,8 @@ define( [ "jquery", "../jquery.mobile.widget", "../jquery.mobile.buttonMarkup" ]
17 $.widget( "mobile.collapsible", $.mobile.widget, {
19 - expandCueText: " click to expand contents",
20 - collapseCueText: " click to collapse contents",
21 + expandCueText: " Expandable list, tap to open list",
22 + collapseCueText: " Expandable list, tap to close list",
24 heading: "h1,h2,h3,h4,h5,h6,legend",
26 @@ -103,7 +103,8 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
36 @@ -138,6 +139,7 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
38 $this.toggleClass( "ui-collapsible-collapsed", isCollapse );
39 collapsibleContent.toggleClass( "ui-collapsible-content-collapsed", isCollapse ).attr( "aria-hidden", isCollapse );
40 + collapsibleContent.children( "li" ).not( "ui-collapsible-content" ).attr( "tabindex", isCollapse ? "" : "0" );
42 if ( contentTheme && !!o.inset && ( !collapsibleSet.length || collapsible.jqmData( "collapsible-last" ) ) ) {