MDL-61623 accessibility: Use role, not aria-role
authorDamyon Wiese <damyon@moodle.com>
Mon, 17 Dec 2018 08:06:21 +0000 (16:06 +0800)
committerDamyon Wiese <damyon@moodle.com>
Tue, 29 Jan 2019 05:40:10 +0000 (13:40 +0800)
lib/templates/popover_region.mustache
report/progress/index.php

index 753ab80..2047541 100644 (file)
@@ -38,7 +38,7 @@
     data-region="popover-region">
     <div class="popover-region-toggle nav-link"
         data-region="popover-region-toggle"
-        aria-role="button"
+        role="button"
         aria-controls="popover-region-container-{{uniqid}}"
         aria-haspopup="true"
         aria-label="{{$togglelabel}}{{#str}}showpopovermenu{{/str}}{{/togglelabel}}"
index 487330e..1681b25 100644 (file)
@@ -422,7 +422,7 @@ foreach($progress as $user) {
                                                                      'data-activityname' => $a->activity,
                                                                      'data-userfullname' => $a->user,
                                                                      'data-completiontracking' => $completiontrackingstring,
-                                                                     'aria-role' => 'button'));
+                                                                     'role' => 'button'));
             }
             print '<td class="completion-progresscell '.$formattedactivities[$activity->id]->datepassedclass.'">'.
                 $celltext . '</td>';