From a7f40d708ec740d1d0a8f541daac7f972a68630c Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 21 Jul 2024 13:59:27 +0600 Subject: [PATCH] web/meowbalt: hide meowbalt from screen readers presence of an image of a cat on the screen doesn't change anything about the ui for vision impaired people. it's unnecessary and potentially annoying to have the description of it read out loud on every screen it's used. --- web/i18n/en/a11y/meowbalt.json | 3 --- web/i18n/en/general.json | 3 ++- web/i18n/ru/a11y/meowbalt.json | 3 --- web/i18n/ru/general.json | 3 ++- web/src/components/misc/Meowbalt.svelte | 3 ++- 5 files changed, 6 insertions(+), 9 deletions(-) delete mode 100644 web/i18n/en/a11y/meowbalt.json delete mode 100644 web/i18n/ru/a11y/meowbalt.json diff --git a/web/i18n/en/a11y/meowbalt.json b/web/i18n/en/a11y/meowbalt.json deleted file mode 100644 index fa9ee6d6..00000000 --- a/web/i18n/en/a11y/meowbalt.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "smile": "meowbalt, cobalt's black and white cat mascot, smiling and loafing." -} diff --git a/web/i18n/en/general.json b/web/i18n/en/general.json index 6ea5e8a0..5850e718 100644 --- a/web/i18n/en/general.json +++ b/web/i18n/en/general.json @@ -1,3 +1,4 @@ { - "cobalt": "cobalt" + "cobalt": "cobalt", + "meowbalt": "meowbalt" } diff --git a/web/i18n/ru/a11y/meowbalt.json b/web/i18n/ru/a11y/meowbalt.json deleted file mode 100644 index 59289062..00000000 --- a/web/i18n/ru/a11y/meowbalt.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "smile": "мяубальт, чёрно-белый маскот кобальта. батонится, сложа лапы под себя, и улыбается." -} diff --git a/web/i18n/ru/general.json b/web/i18n/ru/general.json index 75ab3b18..5f762842 100644 --- a/web/i18n/ru/general.json +++ b/web/i18n/ru/general.json @@ -1,3 +1,4 @@ { - "cobalt": "кобальт" + "cobalt": "кобальт", + "meowbalt": "мяубальт" } diff --git a/web/src/components/misc/Meowbalt.svelte b/web/src/components/misc/Meowbalt.svelte index e367758e..13c52556 100644 --- a/web/src/components/misc/Meowbalt.svelte +++ b/web/src/components/misc/Meowbalt.svelte @@ -10,7 +10,8 @@ class="meowbalt {emotion}" src="/meowbalt/{emotion}.png" height="152" - alt={$t(`a11y.meowbalt.${emotion}`)} + alt={$t('general.meowbalt')} + aria-hidden="true" />