From 705251fbe2271f0b9791bb7470446b9341ffe0fb Mon Sep 17 00:00:00 2001 From: Daniel James Smith Date: Fri, 22 Apr 2022 17:58:42 +0200 Subject: [PATCH] Add aria attributes to password gen options (#1611) --- src/app/tools/generator.component.html | 4 ++++ src/locales/en/messages.json | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/app/tools/generator.component.html b/src/app/tools/generator.component.html index e73ab37507..935e07dac9 100644 --- a/src/app/tools/generator.component.html +++ b/src/app/tools/generator.component.html @@ -161,6 +161,7 @@ (change)="savePasswordOptions()" [(ngModel)]="passwordOptions.uppercase" [disabled]="enforcedPasswordPolicyOptions?.useUppercase" + attr.aria-label="{{ 'uppercase' | i18n }}" /> @@ -172,6 +173,7 @@ (change)="savePasswordOptions()" [(ngModel)]="passwordOptions.lowercase" [disabled]="enforcedPasswordPolicyOptions?.useLowercase" + attr.aria-label="{{ 'lowercase' | i18n }}" /> @@ -183,6 +185,7 @@ (change)="savePasswordOptions()" [(ngModel)]="passwordOptions.number" [disabled]="enforcedPasswordPolicyOptions?.useNumbers" + attr.aria-label="{{ 'numbers' | i18n }}" /> @@ -194,6 +197,7 @@ (change)="savePasswordOptions()" [(ngModel)]="passwordOptions.special" [disabled]="enforcedPasswordPolicyOptions?.useSpecial" + attr.aria-label="{{ 'specialCharacters' | i18n }}" /> diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index ab8594d2b4..2dca55ab1c 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -891,6 +891,18 @@ "length": { "message": "Length" }, + "uppercase": { + "message": "Uppercase (A-Z)" + }, + "lowercase": { + "message": "Lowercase (a-z)" + }, + "numbers": { + "message": "Numbers (0-9)" + }, + "specialCharacters": { + "message": "Special Characters (!@#$%^&*)" + }, "numWords": { "message": "Number of Words" },