From e2aa6e03c6d80f18f9ecf962ddd7faec8286b393 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 13b07f59da5..0fc8844ce60 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 a73150c8074..60529a30abb 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}}