MDL-58167 theme: update accessibility templates on clean
authorSimey Lameze <simey@moodle.com>
Mon, 1 May 2017 01:30:38 +0000 (09:30 +0800)
committerSimey Lameze <simey@moodle.com>
Mon, 1 May 2017 01:42:10 +0000 (09:42 +0800)
theme/bootstrapbase/templates/block_myoverview/course-event-list.mustache
theme/bootstrapbase/templates/block_myoverview/courses-view.mustache

index 555966e..d900b32 100644 (file)
     <div class="hidden text-xs-center text-center" data-region="empty-message">
         <img class="empty-placeholder-image-sm"
              src="{{urls.noevents}}"
-             alt="{{#str}} noevents, block_myoverview {{/str}}">
+             alt="{{#str}} noevents, block_myoverview {{/str}}"
+             role="presentation">
         <p class="text-muted m-t-1">{{#str}} noevents, block_myoverview {{/str}}</p>
-        <a href="{{viewurl}}" class="btn btn-secondary text-primary">
+        <a href="{{viewurl}}" class="btn btn-secondary text-primary"
+           aria-label="{{#str}} viewcoursename, block_myoverview, {{fullnamedisplay}} {{/str}}">
             {{#str}} viewcourse, block_myoverview {{/str}}
         </a>
     </div>
index 45a38d5..950ab5a 100644 (file)
@@ -51,7 +51,8 @@
                 <div class="text-xs-center text-center m-t-3">
                     <img class="empty-placeholder-image-lg"
                          src="{{urls.nocourses}}"
-                         alt="{{#str}} nocoursesinprogress, block_myoverview {{/str}}">
+                         alt="{{#str}} nocoursesinprogress, block_myoverview {{/str}}"
+                         role="presentation">
                     <p class="text-muted m-t-1">{{#str}} nocoursesinprogress, block_myoverview {{/str}}</p>
                 </div>
             {{/inprogress}}
@@ -69,7 +70,8 @@
                 <div class="text-xs-center text-center m-t-3">
                     <img class="empty-placeholder-image-lg"
                          src="{{urls.nocourses}}"
-                         alt="{{#str}} nocoursesfuture, block_myoverview {{/str}}">
+                         alt="{{#str}} nocoursesfuture, block_myoverview {{/str}}"
+                         role="presentation">
                     <p class="text-muted m-t-1">{{#str}} nocoursesfuture, block_myoverview {{/str}}</p>
                 </div>
             {{/future}}
@@ -87,7 +89,8 @@
                 <div class="text-xs-center text-center m-t-3">
                     <img class="empty-placeholder-image-lg"
                          src="{{urls.nocourses}}"
-                         alt="{{#str}} nocoursespast, block_myoverview {{/str}}">
+                         alt="{{#str}} nocoursespast, block_myoverview {{/str}}"
+                         role="presentation">
                     <p class="text-muted m-t-1">{{#str}} nocoursespast, block_myoverview {{/str}}</p>
                 </div>
             {{/past}}