From 0b38d6558c6ae0c6609090d7914e924c7d10fe2c Mon Sep 17 00:00:00 2001 From: Tobias Garske Date: Mon, 30 Sep 2024 09:30:23 +0000 Subject: [PATCH] MDL-83255 core_course: Fix activitychooser recommended tab navigation --- course/templates/activitychooser.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/course/templates/activitychooser.mustache b/course/templates/activitychooser.mustache index 3a50df1b58b..18d33ea88cc 100644 --- a/course/templates/activitychooser.mustache +++ b/course/templates/activitychooser.mustache @@ -74,8 +74,8 @@ role="tab" aria-label="{{#str}} aria:recommendedtab, core_course {{/str}}" aria-controls="recommended-{{uniqid}}" - aria-selected="false" - tabindex="-1" + aria-selected="{{#recommendedFirst}}true{{/recommendedFirst}}{{^recommendedFirst}}false{{/recommendedFirst}}" + tabindex="{{#recommendedFirst}}0{{/recommendedFirst}}{{^recommendedFirst}}-1{{/recommendedFirst}}" > {{#str}} recommended, core {{/str}}