From 5a77565aebecddeb29ea5a6d0d29f63e9145ee59 Mon Sep 17 00:00:00 2001
From: xyhhx
Date: Sun, 11 Feb 2024 17:11:29 -0500
Subject: [PATCH] feat(a11y): add aria-labels to various buttons
---
www/webapp/src/App.vue | 9 ++++++---
.../src/components/ActivateAccountActionHandler.vue | 3 ++-
www/webapp/src/components/DonateDirectDebitForm.vue | 3 ++-
www/webapp/src/components/Field/RecordList.vue | 1 +
www/webapp/src/components/ResetPasswordActionHandler.vue | 1 +
www/webapp/src/views/ChangeEmail.vue | 1 +
www/webapp/src/views/ConfirmationPage.vue | 2 +-
www/webapp/src/views/Console/TOTPVerifyDialog.vue | 1 +
www/webapp/src/views/CrudList.vue | 7 ++++++-
www/webapp/src/views/DeleteAccount.vue | 1 +
www/webapp/src/views/DomainSetup.vue | 7 ++++---
www/webapp/src/views/DomainSetupPage.vue | 4 ++--
www/webapp/src/views/DynSetup.vue | 6 +++---
www/webapp/src/views/HomePage.vue | 1 +
www/webapp/src/views/LoginPage.vue | 2 ++
www/webapp/src/views/MFA.vue | 1 +
www/webapp/src/views/SignUp.vue | 1 +
www/webapp/src/views/WelcomePage.vue | 2 +-
18 files changed, 37 insertions(+), 16 deletions(-)
diff --git a/www/webapp/src/App.vue b/www/webapp/src/App.vue
index 6bf870c4e..49e1cde52 100644
--- a/www/webapp/src/App.vue
+++ b/www/webapp/src/App.vue
@@ -45,9 +45,9 @@
{{ item.post_icon }}
- Create Account
- Log In
- Log Out
+ Create Account
+ Log In
+ Log Out
@@ -68,6 +68,7 @@
text
class="align-self-center mr-4"
v-on="on"
+ aria-label="more"
>
more
{{ mdiMenuDown }}
@@ -105,6 +106,7 @@
depressed
:href="alert.href"
v-if="alert.href"
+ aria-label="More"
>
{{ alert.button || 'More' }}
@@ -112,6 +114,7 @@
color="primary"
text
@click="user.unalert(alert.id)"
+ aria-label="Hide"
>
Hide
diff --git a/www/webapp/src/components/ActivateAccountActionHandler.vue b/www/webapp/src/components/ActivateAccountActionHandler.vue
index 34d2b7a48..a2e657ced 100644
--- a/www/webapp/src/components/ActivateAccountActionHandler.vue
+++ b/www/webapp/src/components/ActivateAccountActionHandler.vue
@@ -38,7 +38,7 @@
- {{ mdiRefresh }}
+ {{ mdiRefresh }}
@@ -55,6 +55,7 @@
:disabled="working || !valid"
:loading="working"
tabindex="2"
+ aria-label="Submit"
>Submit
diff --git a/www/webapp/src/components/DonateDirectDebitForm.vue b/www/webapp/src/components/DonateDirectDebitForm.vue
index f704400ec..66d85837f 100644
--- a/www/webapp/src/components/DonateDirectDebitForm.vue
+++ b/www/webapp/src/components/DonateDirectDebitForm.vue
@@ -17,7 +17,7 @@
may be the name appearing on your bank statement.
Again, thank you so much.
- Done
+ Done
Donate Now
diff --git a/www/webapp/src/components/Field/RecordList.vue b/www/webapp/src/components/Field/RecordList.vue
index 5a15de4f5..6d4a31ee2 100644
--- a/www/webapp/src/components/Field/RecordList.vue
+++ b/www/webapp/src/components/Field/RecordList.vue
@@ -28,6 +28,7 @@
small
text
v-if="!readonly && !disabled"
+ aria-label="Add another value"
>{{ mdiPlus }} add another value
diff --git a/www/webapp/src/components/ResetPasswordActionHandler.vue b/www/webapp/src/components/ResetPasswordActionHandler.vue
index f5b29363a..46e3cc68e 100644
--- a/www/webapp/src/components/ResetPasswordActionHandler.vue
+++ b/www/webapp/src/components/ResetPasswordActionHandler.vue
@@ -21,6 +21,7 @@
:disabled="working || !valid"
:loading="working"
tabindex="2"
+ aria-label="Submit"
>Submit
diff --git a/www/webapp/src/views/ChangeEmail.vue b/www/webapp/src/views/ChangeEmail.vue
index b275b2dc1..5a5acb3ae 100644
--- a/www/webapp/src/views/ChangeEmail.vue
+++ b/www/webapp/src/views/ChangeEmail.vue
@@ -79,6 +79,7 @@
type="submit"
:loading="working"
tabindex="3"
+ aria-label="Change Email Address"
>Change Email Address
diff --git a/www/webapp/src/views/ConfirmationPage.vue b/www/webapp/src/views/ConfirmationPage.vue
index 2cebbe460..89b514a44 100644
--- a/www/webapp/src/views/ConfirmationPage.vue
+++ b/www/webapp/src/views/ConfirmationPage.vue
@@ -40,7 +40,7 @@
If you like our service, please consider donating.
- Donate
+ Donate
diff --git a/www/webapp/src/views/Console/TOTPVerifyDialog.vue b/www/webapp/src/views/Console/TOTPVerifyDialog.vue
index 4290b6b76..3335624df 100644
--- a/www/webapp/src/views/Console/TOTPVerifyDialog.vue
+++ b/www/webapp/src/views/Console/TOTPVerifyDialog.vue
@@ -72,6 +72,7 @@
:loading="working"
ref="submit"
tabindex="3"
+ aria-label="Verify"
>Verify
diff --git a/www/webapp/src/views/CrudList.vue b/www/webapp/src/views/CrudList.vue
index ba8bd2f7d..6446ddc59 100644
--- a/www/webapp/src/views/CrudList.vue
+++ b/www/webapp/src/views/CrudList.vue
@@ -12,7 +12,7 @@
:timeout="-1"
>
{{ errors[errors.length - 1] }}
-
+
Close
@@ -61,6 +61,7 @@
fab
depressed
:disabled="user.working"
+ aria-label="Add new record"
>
{{ mdiPlus }}
@@ -170,6 +171,7 @@
:outlined="!createDialogSuccess"
:disabled="createDialogWorking"
@click.native="close"
+ aria-label={{ createDialogSuccess ? 'Close' : 'Cancel' }}
>
{{ createDialogSuccess ? 'Close' : 'Cancel' }}
@@ -181,6 +183,7 @@
:disabled="createInhibited || !valid || createDialogWorking || createDialogSuccess"
:loading="createDialogWorking"
v-if="!createDialogSuccess"
+ aria-label="Save"
>
Save
@@ -313,6 +316,7 @@
outlined
:disabled="destroyDialogWorking"
@click.native="destroyClose"
+ aria-label="Cancel"
>
Cancel
@@ -322,6 +326,7 @@
depressed
type="submit"
:loading="destroyDialogWorking"
+ aria-label="Delete"
>
Delete
diff --git a/www/webapp/src/views/DeleteAccount.vue b/www/webapp/src/views/DeleteAccount.vue
index 9ef179e84..22c878f88 100644
--- a/www/webapp/src/views/DeleteAccount.vue
+++ b/www/webapp/src/views/DeleteAccount.vue
@@ -65,6 +65,7 @@
type="submit"
:loading="working"
tabindex="2"
+ aria-label="Delete Account"
>Delete Account
diff --git a/www/webapp/src/views/DomainSetup.vue b/www/webapp/src/views/DomainSetup.vue
index 3df805aee..24f3b10e0 100644
--- a/www/webapp/src/views/DomainSetup.vue
+++ b/www/webapp/src/views/DomainSetup.vue
@@ -36,7 +36,7 @@
Nameservers
-
+
{{ mdiContentCopy }}
Copy
@@ -74,7 +74,7 @@
DS Format
-
+
{{ mdiContentCopy }}
Copy
@@ -94,7 +94,7 @@
DNSKEY Format
-
+
{{ mdiContentCopy }}
Copy
@@ -129,6 +129,7 @@
text
v-bind="attrs"
@click="snackbar = false"
+ aria-label="Close"
>
Close
diff --git a/www/webapp/src/views/DomainSetupPage.vue b/www/webapp/src/views/DomainSetupPage.vue
index f83bdf5cc..6bc981e1f 100644
--- a/www/webapp/src/views/DomainSetupPage.vue
+++ b/www/webapp/src/views/DomainSetupPage.vue
@@ -28,7 +28,7 @@
the answer there.
- Find Help
+ Find Help
@@ -40,7 +40,7 @@
If you like our service, please consider donating.
- Donate
+ Donate
diff --git a/www/webapp/src/views/DynSetup.vue b/www/webapp/src/views/DynSetup.vue
index b827479a1..022f7b4d0 100644
--- a/www/webapp/src/views/DynSetup.vue
+++ b/www/webapp/src/views/DynSetup.vue
@@ -110,7 +110,7 @@
Please verify that your client is using the credentials provided by deSEC and then come back to check
again.
- Check Again
+ Check Again
@@ -129,7 +129,7 @@
Enjoy!
- Update
+ Update
Please note that deSEC only assigns your IP address to your domain name.
@@ -155,7 +155,7 @@
If you like our service, please consider donating.
- Donate
+ Donate
diff --git a/www/webapp/src/views/HomePage.vue b/www/webapp/src/views/HomePage.vue
index cf48c832f..967ee16f9 100644
--- a/www/webapp/src/views/HomePage.vue
+++ b/www/webapp/src/views/HomePage.vue
@@ -48,6 +48,7 @@
depressed
x-large
block
+ aria-label="Create Account"
>
Create Account
diff --git a/www/webapp/src/views/LoginPage.vue b/www/webapp/src/views/LoginPage.vue
index ff12ed84d..ffca83b76 100644
--- a/www/webapp/src/views/LoginPage.vue
+++ b/www/webapp/src/views/LoginPage.vue
@@ -65,6 +65,7 @@
:disabled="!valid"
:loading="working"
tabindex="4"
+ aria-label="Log In"
>
Log In
@@ -74,6 +75,7 @@
color="primary"
:to="{name: 'reset-password', params: email ? {email: email} : {}}"
tabindex="5"
+ aria-label="Forgot password"
>
Forgot password
diff --git a/www/webapp/src/views/MFA.vue b/www/webapp/src/views/MFA.vue
index e2dee7540..2c56405f2 100644
--- a/www/webapp/src/views/MFA.vue
+++ b/www/webapp/src/views/MFA.vue
@@ -66,6 +66,7 @@
:loading="working"
ref="submit"
tabindex="3"
+ aria-label="Verify"
>Verify
diff --git a/www/webapp/src/views/SignUp.vue b/www/webapp/src/views/SignUp.vue
index c3b26e559..a7056f7b8 100644
--- a/www/webapp/src/views/SignUp.vue
+++ b/www/webapp/src/views/SignUp.vue
@@ -168,6 +168,7 @@
type="submit"
:loading="working"
tabindex="7"
+ aria-label="Sign up"
>Sign up
diff --git a/www/webapp/src/views/WelcomePage.vue b/www/webapp/src/views/WelcomePage.vue
index af4083ff7..bb5aaff27 100644
--- a/www/webapp/src/views/WelcomePage.vue
+++ b/www/webapp/src/views/WelcomePage.vue
@@ -31,7 +31,7 @@
- Home
+ Home