MDL-54832 workshop: adding landmark for userplantable
Accessibility enhance: add an aria-label on the userplan table so that it's accessible to me through my screen reader
This commit is contained in:
@@ -283,6 +283,9 @@ class mod_workshop_renderer extends plugin_renderer_base {
|
||||
protected function render_workshop_user_plan(workshop_user_plan $plan) {
|
||||
$table = new html_table();
|
||||
$table->attributes['class'] = 'userplan';
|
||||
$table->attributes['role'] = 'section';
|
||||
$numberofphases = count($plan->phases);
|
||||
$table->attributes['aria-label'] = get_string('userplanaccessibilitytitle', 'workshop', $numberofphases);
|
||||
$table->head = array();
|
||||
$table->colclasses = array();
|
||||
$row = new html_table_row();
|
||||
|
||||
Reference in New Issue
Block a user