From e293c3deb39615a8597cce5195fbc2d573006162 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Fri, 10 Aug 2018 16:54:36 +0800 Subject: [PATCH] MDL-62143 accessibility: Label breadcrumbs --- lib/outputrenderers.php | 3 +++ theme/boost/templates/core/navbar.mustache | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 9999c7f0012..9bd33c888d4 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -3532,6 +3532,9 @@ EOD; if ($item->hidden) { $attributes['class'] = 'dimmed_text'; } + if ($item->is_last()) { + $attributes['aria-current'] = 'page'; + } $content = html_writer::tag('span', $content, array('itemprop' => 'title')); $content = html_writer::link($item->action, $content, $attributes); diff --git a/theme/boost/templates/core/navbar.mustache b/theme/boost/templates/core/navbar.mustache index fa8afb5ec8f..6b5dc479bea 100644 --- a/theme/boost/templates/core/navbar.mustache +++ b/theme/boost/templates/core/navbar.mustache @@ -63,12 +63,12 @@ ] } }} -