From 21963b93639356143220d578cc1286db87f1763a Mon Sep 17 00:00:00 2001
From: Mykyta Maliarchuk <84377976+nikita-web-ua@users.noreply.github.com>
Date: Fri, 9 Jan 2026 10:38:55 +0100
Subject: [PATCH] [ACS-10283] a11y fix - Folder rules 'when' label is not
associated with checkboxes (#4968)
* [ACS-10283] a11y fix - Folder rules 'when' label is not associated with checkboxes
* [ACS-10283] fix sonar issue
* [ACS-10283] fix also for other options
---
.../options/rule-options.ui-component.html | 5 ++-
.../options/rule-options.ui-component.scss | 11 ++++--
.../options/rule-options.ui-component.ts | 2 ++
.../rule-details.ui-component.html | 4 +--
.../triggers/rule-triggers.ui-component.html | 36 ++++++++++---------
.../triggers/rule-triggers.ui-component.scss | 7 ++++
.../triggers/rule-triggers.ui-component.ts | 5 ++-
7 files changed, 44 insertions(+), 26 deletions(-)
create mode 100644 projects/aca-content/folder-rules/src/rule-details/triggers/rule-triggers.ui-component.scss
diff --git a/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.html b/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.html
index ee8034237..d3089eb25 100644
--- a/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.html
+++ b/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.html
@@ -1,4 +1,4 @@
-
+
+
diff --git a/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.scss b/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.scss
index 09f273786..ef9278775 100644
--- a/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.scss
+++ b/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.scss
@@ -1,7 +1,12 @@
.aca-rule-options {
- display: flex;
- flex-direction: row;
- gap: 24px;
+ fieldset {
+ display: flex;
+ flex-direction: row;
+ gap: 24px;
+ border: none;
+ padding: 0;
+ margin: 0;
+ }
&__option {
display: flex;
diff --git a/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.ts b/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.ts
index d07ab95e0..c550c70c5 100644
--- a/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.ts
+++ b/projects/aca-content/folder-rules/src/rule-details/options/rule-options.ui-component.ts
@@ -70,6 +70,8 @@ export class RuleOptionsUiComponent implements ControlValueAccessor, OnChanges,
hideErrorScriptDropdown = true;
+ @Input() ariaLabelledBy = 'rule-options-label';
+
@Input()
errorScriptConstraint: ActionParameterConstraint;
diff --git a/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.html b/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.html
index 68452c695..ffcd9f149 100644
--- a/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.html
+++ b/projects/aca-content/folder-rules/src/rule-details/rule-details.ui-component.html
@@ -30,7 +30,7 @@