From c427537471ce0c7fa01675a2ffcc58c9afdf4542 Mon Sep 17 00:00:00 2001 From: Aaron Cannon Date: Tue, 24 May 2016 16:02:56 -0500 Subject: [PATCH] A11y: Switched Discussion and Announcement filters to using real labels Fixes CNVS-29498 Test plan: - Visit both Discussions and Announcements lists - Verify that the look and function of the filter checkboxes are unchanged. - Verify that they read well with screen readers. Change-Id: I61703a01206f4346bbf7ec494ce977dd1f3b576f Reviewed-on: https://gerrit.instructure.com/80634 Tested-by: Jenkins Reviewed-by: Joel Hough QA-Review: Jahnavi Yetukuri Product-Review: Aaron Cannon --- .../jst/DiscussionTopics/IndexView.handlebars | 16 ++++++++++------ app/views/jst/announcements/IndexView.handlebars | 7 ++++--- public/javascripts/vendor/jqueryui/button.js | 2 ++ 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/app/views/jst/DiscussionTopics/IndexView.handlebars b/app/views/jst/DiscussionTopics/IndexView.handlebars index 4b4f4e8f000..30537d6488c 100644 --- a/app/views/jst/DiscussionTopics/IndexView.handlebars +++ b/app/views/jst/DiscussionTopics/IndexView.handlebars @@ -17,16 +17,20 @@ value="{{searchTerm}}" type="search"> - {{t "filter discussions by unread"}} - {{t "filter discussions by assignments"}} + {{#if onlyUnread}}checked{{/if}} /> + + {{#if onlyGraded}}checked{{/if}}/> +
diff --git a/app/views/jst/announcements/IndexView.handlebars b/app/views/jst/announcements/IndexView.handlebars index 85ccafc2021..f9a95918c7a 100644 --- a/app/views/jst/announcements/IndexView.handlebars +++ b/app/views/jst/announcements/IndexView.handlebars @@ -16,12 +16,13 @@ value="{{searchTerm}}" type="search"> - {{t "filter announcements by unread"}} - +
diff --git a/public/javascripts/vendor/jqueryui/button.js b/public/javascripts/vendor/jqueryui/button.js index 3cb3483b4da..9d0930f54f0 100755 --- a/public/javascripts/vendor/jqueryui/button.js +++ b/public/javascripts/vendor/jqueryui/button.js @@ -82,7 +82,9 @@ $.widget( "ui.button", { this.buttonElement .addClass( baseClasses ) + .not( ".no-button-role" ) .attr( "role", "button" ) + .end() .bind( "mouseenter" + this.eventNamespace, function() { if ( options.disabled ) { return;