From 41727bfd51d7fe2c8df5b28e7805d157389de82f Mon Sep 17 00:00:00 2001 From: Satyam Valjibhai Mangroliya <93871216+satyammangroliya@users.noreply.github.com> Date: Mon, 17 Nov 2025 15:13:35 +0100 Subject: [PATCH] Enhance formSelect with aria-label for accessibility fix action and part of this mantis issue https://mantis.ilias.de/view.php?id=44424 --- components/ILIAS/Table/classes/class.ilTable2GUI.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/components/ILIAS/Table/classes/class.ilTable2GUI.php b/components/ILIAS/Table/classes/class.ilTable2GUI.php index a973e02d5a61..be337c2e7fd4 100755 --- a/components/ILIAS/Table/classes/class.ilTable2GUI.php +++ b/components/ILIAS/Table/classes/class.ilTable2GUI.php @@ -2322,7 +2322,16 @@ public function fillActionRow(): void } $this->tpl->setVariable( "SELECT_CMDS", - ilLegacyFormElementsUtil::formSelect("", "selected_cmd2", $sel, false, true) + ilLegacyFormElementsUtil::formSelect( + "", // selected + "selected_cmd2", // name + $sel, // options + false, // use_multi + true, // submit_after_change + 0, // size + "", // css class + array("aria-label" => $lng->txt("action")) // <-- localized aria-label + ) ); $this->tpl->setVariable("TXT_EXECUTE", $lng->txt("execute")); $this->tpl->parseCurrentBlock();