From 78c3db5db769ceef2cc182e258cd4ef21519d077 Mon Sep 17 00:00:00 2001 From: Taylor Date: Fri, 20 Mar 2020 17:31:30 -0400 Subject: [PATCH] [ACA-2789] - edit button a11y fixes (#5399) * fix: remove title property from button * use tooltip instead of aria label * fix aria label Co-authored-by: Taylor Richards Co-authored-by: Denys Vuika --- .../content-metadata-card/content-metadata-card.component.html | 2 +- lib/core/i18n/en.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/content-services/src/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.html b/lib/content-services/src/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.html index 6b564febd4..54154e9e63 100644 --- a/lib/content-services/src/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.html +++ b/lib/content-services/src/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.html @@ -17,7 +17,7 @@ mat-icon-button (click)="toggleEdit()" [attr.title]="'CORE.METADATA.ACTIONS.EDIT' | translate" - [attr.aria-label]="'CORE.METADATA.ACTIONS.EDIT' | translate" + [attr.aria-label]="'CORE.METADATA.ACCESSIBILITY.EDIT' | translate" data-automation-id="meta-data-card-toggle-edit"> mode_edit diff --git a/lib/core/i18n/en.json b/lib/core/i18n/en.json index 45aa681795..35da8ceaf0 100644 --- a/lib/core/i18n/en.json +++ b/lib/core/i18n/en.json @@ -201,6 +201,7 @@ "TOGGLE": "Toggle value" }, "ACCESSIBILITY": { + "EDIT": "Edit button", "DATEPICKER": "Use the arrow keys to navigate between dates. Up and down move to the next or previous week but on the same day. Left and right move to the next or previous day. Press Enter or Return to select a date." } },