From 4873815699383f8d051a75196f968c456807d7a2 Mon Sep 17 00:00:00 2001 From: Alexandre Vryghem Date: Sun, 26 Nov 2023 23:53:44 +0100 Subject: [PATCH] Fix Health Panel usability issues - Fixed aria-controls on HealthComponentComponent, HealthInfoComponent, HealthInfoComponentComponent, HealthPanelComponent pointing to non-existing id - Fixed the tabs not having the role tab on its tabs - Fixed aria-expanded being set to true when collapsed and backwards for HealthPanelComponent & HealthInfoComponent - Fixed minor alignment issues --- .../health-info-component.component.html | 8 +++---- .../health-info/health-info.component.html | 15 ++++++------- .../health-page/health-page.component.html | 6 +++--- src/app/health-page/health-page.component.ts | 3 +++ .../health-component.component.html | 8 +++---- .../health-panel/health-panel.component.html | 21 +++++++++++-------- .../health-status.component.html | 6 +++--- .../health-status.component.scss | 3 +++ 8 files changed, 40 insertions(+), 30 deletions(-) diff --git a/src/app/health-page/health-info/health-info-component/health-info-component.component.html b/src/app/health-page/health-info/health-info-component/health-info-component.component.html index dbaaa7a6b6e..84cba4d92f3 100644 --- a/src/app/health-page/health-info/health-info-component/health-info-component.component.html +++ b/src/app/health-page/health-info/health-info-component/health-info-component.component.html @@ -1,16 +1,16 @@
-
+
-
+
-
+
-
- -
+
-
+
@@ -17,8 +17,9 @@
- + + diff --git a/src/app/health-page/health-page.component.html b/src/app/health-page/health-page.component.html index 8083389e1b4..cdfca1bb8ad 100644 --- a/src/app/health-page/health-page.component.html +++ b/src/app/health-page/health-page.component.html @@ -2,7 +2,7 @@

{{'health-page.heading' | translate}}

- +
diff --git a/src/app/health-page/health-page.component.ts b/src/app/health-page/health-page.component.ts index aa7bd7cba46..5c3c7ed70e2 100644 --- a/src/app/health-page/health-page.component.ts +++ b/src/app/health-page/health-page.component.ts @@ -5,6 +5,7 @@ import { take } from 'rxjs/operators'; import { HealthService } from './health.service'; import { HealthInfoResponse, HealthResponse } from './models/health-component.model'; +import { AlertType } from '../shared/alert/alert-type'; @Component({ selector: 'ds-health-page', @@ -33,6 +34,8 @@ export class HealthPageComponent implements OnInit { */ healthInfoResponseInitialised: BehaviorSubject = new BehaviorSubject(false); + readonly AlertType = AlertType; + constructor(private healthDataService: HealthService) { } diff --git a/src/app/health-page/health-panel/health-component/health-component.component.html b/src/app/health-page/health-panel/health-component/health-component.component.html index 1f29c8c9fcc..f962e66052e 100644 --- a/src/app/health-page/health-panel/health-component/health-component.component.html +++ b/src/app/health-page/health-panel/health-component/health-component.component.html @@ -1,16 +1,16 @@
-
+
-
+
-
+
{{'health-page.status' | translate}} :

+

+ {{'health-page.status' | translate}}: + +

-
- -
+
-
+
@@ -17,9 +20,9 @@
- + + - - diff --git a/src/app/health-page/health-panel/health-status/health-status.component.html b/src/app/health-page/health-panel/health-status/health-status.component.html index 38a6f726018..e8710a07600 100644 --- a/src/app/health-page/health-panel/health-status/health-status.component.html +++ b/src/app/health-page/health-panel/health-status/health-status.component.html @@ -1,12 +1,12 @@ diff --git a/src/app/health-page/health-panel/health-status/health-status.component.scss b/src/app/health-page/health-panel/health-status/health-status.component.scss index e69de29bb2d..79ff2d52696 100644 --- a/src/app/health-page/health-panel/health-status/health-status.component.scss +++ b/src/app/health-page/health-panel/health-status/health-status.component.scss @@ -0,0 +1,3 @@ +:host { + display: flex; +}