Skip to content

Commit 19c9832

Browse files
authored
set attribute aria-current=page on anchor indicates the current page. (joomla#29343)
1 parent fa48ef9 commit 19c9832

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/mod_menu/tmpl/default_component.php

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
$attributes['rel'] = $item->anchor_rel;
3030
}
3131

32+
if ($item->id == $active_id)
33+
{
34+
$attributes['aria-current'] = 'page';
35+
}
36+
3237
$linktype = $item->title;
3338

3439
if ($item->menu_image)

0 commit comments

Comments
 (0)