From b7d06d94bdd99adcb8f16ceb9c6e577194956e63 Mon Sep 17 00:00:00 2001 From: RiteshHMCTS <74713687+RiteshHMCTS@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:35:47 +0100 Subject: [PATCH] Revert "Ex UI 1270 accessibility bug fixes (#1693)" (#1764) This reverts commit 20adac85ab7e0987f9ff565ad5748410f445aa11. --- RELEASE-NOTES.md | 4 - package.json | 2 +- projects/ccd-case-ui-toolkit/package.json | 2 +- .../case-full-access-view.component.html | 93 +++++++++---------- .../palette/base-field/field-read.html | 2 +- .../collection/read-collection-field.html | 2 +- .../complex/read-complex-field-table.html | 6 +- .../multi-select-list/multi-select-list.scss | 5 - ...-multi-select-list-field.component.spec.ts | 11 ++- .../read-multi-select-list-field.html | 5 +- .../search-result.component.html | 4 +- 11 files changed, 63 insertions(+), 73 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index c68b120b0c..abae9ed77e 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,9 +1,5 @@ ## RELEASE NOTES -### Version 7.0.59 -**EXUI-1270** Accessibility Issue -**EXUI-1504** Accessibility Issue - ### Version 7.0.58 **EXUI-2235** add event name in task completion log diff --git a/package.json b/package.json index 99d9746a06..f447a4ce97 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hmcts/ccd-case-ui-toolkit", - "version": "7.0.59", + "version": "7.0.58", "engines": { "node": ">=18.19.0" }, diff --git a/projects/ccd-case-ui-toolkit/package.json b/projects/ccd-case-ui-toolkit/package.json index ce97fb6cee..6d3f8c0fa5 100644 --- a/projects/ccd-case-ui-toolkit/package.json +++ b/projects/ccd-case-ui-toolkit/package.json @@ -1,6 +1,6 @@ { "name": "@hmcts/ccd-case-ui-toolkit", - "version": "7.0.59", + "version": "7.0.58", "engines": { "node": ">=18.19.0" }, diff --git a/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.html b/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.html index c595ef1f55..22d5dcb4e2 100644 --- a/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.html +++ b/projects/ccd-case-ui-toolkit/src/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.html @@ -1,6 +1,6 @@
+ role="group" aria-labelledby="edit-case-event_error-summary-heading" tabindex="-1">

{{'Something went wrong' | rpxTranslate}}

@@ -14,7 +14,7 @@

+ aria-labelledby="edit-case-event_error-summary-heading" tabindex="-1">

{{'The callback data failed validation' | rpxTranslate}}

@@ -25,28 +25,31 @@

+
+ [triggerText]="triggerText" + [eventId]="eventId" + (onTriggerChange)="clearErrorsAndWarnings()" + (onTriggerSubmit)="applyTrigger($event)">
- +
@@ -59,41 +62,38 @@

-
{{tab.label | rpxTranslate}}
- +
- - -
- -
- - - - - - - - - + +
+ +
+ + + + + + + + +
-
- {{field.label | rpxTranslate}}​
-
- - - - -
- - - - ​ -
+
+ {{field.label | rpxTranslate}}
+
+ + + + +
+ + + + +
@@ -101,8 +101,7 @@

- +

- \ No newline at end of file + diff --git a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/base-field/field-read.html b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/base-field/field-read.html index e17eb96789..68e463d347 100644 --- a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/base-field/field-read.html +++ b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/base-field/field-read.html @@ -1,4 +1,4 @@ -
+
diff --git a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/collection/read-collection-field.html b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/collection/read-collection-field.html index 3ec9934054..cb45548ec5 100644 --- a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/collection/read-collection-field.html +++ b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/collection/read-collection-field.html @@ -1,4 +1,4 @@ - +
diff --git a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/complex/read-complex-field-table.html b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/complex/read-complex-field-table.html index dd0086497d..1132d28b7d 100644 --- a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/complex/read-complex-field-table.html +++ b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/complex/read-complex-field-table.html @@ -1,6 +1,6 @@
-
{{caseField.label | rpxTranslate}}
-
+
{{caseField.label | rpxTranslate}}
+
@@ -15,7 +15,7 @@ - +
{{field.label | rpxTranslate}}{{field.label | rpxTranslate}} { }); it('should NOT render anything when value is undefined', () => { - component.caseField.value = []; + component.caseField.value = undefined; fixture.detectChanges(); - expect(de?.children?.length).toBe(1); // ​ has been added to every for accessibilty reasons. At least 1 item always present + + expect(de.children.length).toBe(0); }); it('should NOT render anything when value is null', () => { - component.caseField.value = []; + component.caseField.value = null; fixture.detectChanges(); - expect(de?.children?.length).toBe(1); // ​ has been added to every for accessibilty reasons. At least 1 item always present + expect(de.children.length).toBe(0); }); it('should NOT render anything when value is empty array', () => { component.caseField.value = []; fixture.detectChanges(); - expect(de.children.length).toBe(1); // ​ has been added to every for accessibilty reasons. At least 1 item always present + expect(de.children.length).toBe(0); }); }); diff --git a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/multi-select-list/read-multi-select-list-field.html b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/multi-select-list/read-multi-select-list-field.html index ca96627655..18cb74a6a5 100644 --- a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/multi-select-list/read-multi-select-list-field.html +++ b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/multi-select-list/read-multi-select-list-field.html @@ -1,9 +1,8 @@ -
{{caseField.value[0]}}
+ [attr.aria-describedby]="'multi selection table' | rpxTranslate"> - + diff --git a/projects/ccd-case-ui-toolkit/src/lib/shared/components/search-result/search-result.component.html b/projects/ccd-case-ui-toolkit/src/lib/shared/components/search-result/search-result.component.html index d72442bf5d..66f7986a48 100644 --- a/projects/ccd-case-ui-toolkit/src/lib/shared/components/search-result/search-result.component.html +++ b/projects/ccd-case-ui-toolkit/src/lib/shared/components/search-result/search-result.component.html @@ -136,7 +136,7 @@

{{ (caseSt [screenReaderPageLabel]="page" [screenReaderCurrentLabel]="'You\'re on page'"> -
+
{{'No cases found. Try using different filters.' | rpxTranslate}}
-

{{ value | ccdFixedList:caseField.field_type.fixed_list_items | rpxTranslate}}