From ee430d4501fd7c866730630ce844b05dff66b46f Mon Sep 17 00:00:00 2001 From: Lukas Eichenauer Date: Thu, 29 Jan 2026 09:44:24 +0100 Subject: [PATCH] fix(ui/43964:): introduce aria-current attribute in linear listing component --- .../src/Implementation/Component/Listing/Workflow/Renderer.php | 1 + .../ILIAS/UI/src/templates/default/Listing/tpl.linear.html | 2 +- .../UI/tests/Component/Listing/Workflow/LinearWorkflowTest.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/ILIAS/UI/src/Implementation/Component/Listing/Workflow/Renderer.php b/components/ILIAS/UI/src/Implementation/Component/Listing/Workflow/Renderer.php index 7df1462a1b7a..14be9ca3e0f2 100755 --- a/components/ILIAS/UI/src/Implementation/Component/Listing/Workflow/Renderer.php +++ b/components/ILIAS/UI/src/Implementation/Component/Listing/Workflow/Renderer.php @@ -69,6 +69,7 @@ protected function render_linear(Linear $component, RendererInterface $default_r if ($index === $component->getActive()) { $tpl->touchBlock('active'); + $tpl->touchBlock('active_aria'); $component = $component->withAdditionalOnLoadCode( fn($id) => " window.requestAnimationFrame(() => { diff --git a/components/ILIAS/UI/src/templates/default/Listing/tpl.linear.html b/components/ILIAS/UI/src/templates/default/Listing/tpl.linear.html index 945aa54d1020..5905ad5e8e77 100755 --- a/components/ILIAS/UI/src/templates/default/Listing/tpl.linear.html +++ b/components/ILIAS/UI/src/templates/default/Listing/tpl.linear.html @@ -20,7 +20,7 @@

{TITLE}

">
- {LABEL} + aria-current="step">{LABEL} {DESCRIPTION}
diff --git a/components/ILIAS/UI/tests/Component/Listing/Workflow/LinearWorkflowTest.php b/components/ILIAS/UI/tests/Component/Listing/Workflow/LinearWorkflowTest.php index 077af59a3a42..1db33d9ceefb 100755 --- a/components/ILIAS/UI/tests/Component/Listing/Workflow/LinearWorkflowTest.php +++ b/components/ILIAS/UI/tests/Component/Listing/Workflow/LinearWorkflowTest.php @@ -112,7 +112,7 @@ public function testLinearWorkflowRendering(): void
  • - +