diff --git a/modules/ui/src/app/components/download-report-zip/download-report-zip.component.ts b/modules/ui/src/app/components/download-report-zip/download-report-zip.component.ts index 2dbae7d9a..f773d87d9 100644 --- a/modules/ui/src/app/components/download-report-zip/download-report-zip.component.ts +++ b/modules/ui/src/app/components/download-report-zip/download-report-zip.component.ts @@ -16,6 +16,7 @@ import { ChangeDetectionStrategy, Component, + HostBinding, HostListener, Input, OnDestroy, @@ -44,6 +45,8 @@ export class DownloadReportZipComponent implements OnDestroy { @Input() url: string | null | undefined = null; @HostListener('click', ['$event.target']) + @HostListener('keydown.enter', ['$event']) + @HostListener('keydown.space', ['$event']) onClick() { const dialogRef = this.dialog.open(DownloadZipModalComponent, { ariaLabel: 'Download zip', @@ -77,6 +80,9 @@ export class DownloadReportZipComponent implements OnDestroy { }); } + @HostBinding('tabIndex') + readonly tabIndex = 0; + ngOnDestroy() { this.destroy$.next(true); this.destroy$.unsubscribe(); diff --git a/modules/ui/src/app/components/download-zip-modal/download-zip-modal.component.html b/modules/ui/src/app/components/download-zip-modal/download-zip-modal.component.html index 8f76133d6..abbbee77b 100644 --- a/modules/ui/src/app/components/download-zip-modal/download-zip-modal.component.html +++ b/modules/ui/src/app/components/download-zip-modal/download-zip-modal.component.html @@ -54,6 +54,7 @@ class="download-button" color="primary" mat-flat-button + aria-label="Download" type="button"> Download @@ -69,7 +70,7 @@ color="primary" mat-button type="button" - m + aria-label="Download ZIP file without Risk Assessment" class="download-button"> Download Anyway diff --git a/modules/ui/src/app/pages/reports/reports.component.html b/modules/ui/src/app/pages/reports/reports.component.html index c649478a5..e35728c6b 100644 --- a/modules/ui/src/app/pages/reports/reports.component.html +++ b/modules/ui/src/app/pages/reports/reports.component.html @@ -155,11 +155,13 @@