From e5da273f9a00f373ae548430b8cdcdf95416d215 Mon Sep 17 00:00:00 2001 From: yusufwib01 Date: Tue, 20 May 2025 16:32:44 +0700 Subject: [PATCH] MDL-85467 core: Replace orphaned label with span for accessibility This commit replaces orphaned labels with spans for improved accessibility. It also updates the XPATH partial named selector for select_menu fields to target span elements. --- group/templates/comboboxsearch/group_selector.mustache | 4 ++-- lib/behat/classes/partial_named_selector.php | 2 +- lib/templates/select_menu.mustache | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/group/templates/comboboxsearch/group_selector.mustache b/group/templates/comboboxsearch/group_selector.mustache index 8022046c02b..c0596f457f7 100644 --- a/group/templates/comboboxsearch/group_selector.mustache +++ b/group/templates/comboboxsearch/group_selector.mustache @@ -34,9 +34,9 @@
- + {{selectedgroup}} diff --git a/lib/behat/classes/partial_named_selector.php b/lib/behat/classes/partial_named_selector.php index e062398c250..0fcc8afc04d 100644 --- a/lib/behat/classes/partial_named_selector.php +++ b/lib/behat/classes/partial_named_selector.php @@ -338,7 +338,7 @@ XPATH XPATH , 'select_menu' => << {{#label}}{{^inlinelabel}} - + {{label}} {{/inlinelabel}}{{/label}}