From eda687d1406acc47d4161b537c7334e8d1bd1914 Mon Sep 17 00:00:00 2001 From: Mykyta Maliarchuk <84377976+nikita-web-ua@users.noreply.github.com> Date: Wed, 14 Jan 2026 08:41:40 +0100 Subject: [PATCH] [ACS-10287] a11y Fix: No label is announced for the dropdown, folder rules dialog (#4981) * [ACS-10287] a11y Fix: No label is announced for the dropdown in folder rules dialog * fix sonar issue * [ACS-10287] add unit tests --- .../folder-rules/assets/i18n/en.json | 8 ++++- .../rule-action-list.ui-component.html | 2 +- ...rule-composite-condition.ui-component.html | 13 ++++--- ...rule-composite-condition.ui-component.scss | 6 ++++ ...e-composite-condition.ui-component.spec.ts | 35 +++++++++++++++++++ .../rule-simple-condition.ui-component.html | 3 ++ .../rule-details.ui-component.html | 2 +- 7 files changed, 62 insertions(+), 7 deletions(-) diff --git a/projects/aca-content/folder-rules/assets/i18n/en.json b/projects/aca-content/folder-rules/assets/i18n/en.json index 2668e768c..e48bc637e 100644 --- a/projects/aca-content/folder-rules/assets/i18n/en.json +++ b/projects/aca-content/folder-rules/assets/i18n/en.json @@ -19,7 +19,13 @@ "DESCRIPTION": "Description", "WHEN": "When", "PERFORM_ACTIONS": "Perform actions", - "OPTIONS": "Other options" + "OPTIONS": "Other options", + "FIELD": "Field", + "COMPARATOR": "Comparator", + "VALUE": "Value", + "LOGIC_OPERATOR": "Logic Operator", + "GROUP_CONDITIONS": "Group Conditions", + "CONDITIONS": "Conditions" }, "PLACEHOLDER": { "NAME": "Enter rule name", diff --git a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action-list.ui-component.html b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action-list.ui-component.html index 1b7c1b324..4092bccd8 100644 --- a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action-list.ui-component.html +++ b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action-list.ui-component.html @@ -1,4 +1,4 @@ -
+
{{ 'ACA_FOLDER_RULES.RULE_DETAILS.' + (childCondition ? 'NO_CONDITIONS_IN_GROUP' : 'NO_CONDITIONS') | translate }}
+
+ + {{ (childCondition ? 'ACA_FOLDER_RULES.RULE_DETAILS.LABEL.GROUP_CONDITIONS' : 'ACA_FOLDER_RULES.RULE_DETAILS.LABEL.CONDITIONS') | translate }} + +
-
- + {{ 'ACA_FOLDER_RULES.RULE_DETAILS.LABEL.LOGIC_OPERATOR' | translate }} @@ -50,8 +56,7 @@ {{ 'ACA_FOLDER_RULES.RULE_DETAILS.CONDITION_BUTTONS.REMOVE' | translate }} - -
+
-
{{ 'ACA_FOLDER_RULES.RULE_DETAILS.LABEL.PERFORM_ACTIONS' | translate }}
+
{{ 'ACA_FOLDER_RULES.RULE_DETAILS.LABEL.PERFORM_ACTIONS' | translate }}