Skip to content

Commit 8a23424

Browse files
feat: add connected text a11y
1 parent ecefee3 commit 8a23424

6 files changed

Lines changed: 8 additions & 2 deletions

File tree

app/components/Header/AccountMenu.client.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@ function openAuthModal() {
6868
<div v-if="hasAnyConnection" class="flex items-center relative">
6969
<span
7070
class="w-6 h-6 rounded-full bg-bg-muted ring-2 ring-bg flex items-center justify-center"
71-
:class="hasBothConnections ? 'relative z-10' : ''"
71+
aria-hidden="true"
7272
>
7373
<span class="size-1.5 rounded-full bg-green-600 absolute top-0 -inset-ie-0"></span>
74-
<span class="i-carbon-cloud w-3 h-3 text-fg-muted" aria-hidden="true" />
74+
<span class="i-carbon-cloud w-3 h-3 text-fg-muted" />
7575
</span>
76+
<span class="sr-only">{{ $t('account_menu.connected') }}</span>
7677
</div>
7778
<span v-else class="font-mono text-sm">
7879
{{ $t('account_menu.connect') }}

i18n/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,7 @@
790790
},
791791
"account_menu": {
792792
"connect": "connect",
793+
"connected": "Connected",
793794
"account": "Account",
794795
"npm_cli": "npm CLI",
795796
"atmosphere": "Atmosphere",

i18n/locales/it-IT.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@
768768
},
769769
"account_menu": {
770770
"connect": "connetti",
771+
"connected": "connesso",
771772
"account": "Account",
772773
"npm_cli": "npm CLI",
773774
"atmosphere": "Atmosphere",

lunaria/files/en-GB.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,7 @@
790790
},
791791
"account_menu": {
792792
"connect": "connect",
793+
"connected": "Connected",
793794
"account": "Account",
794795
"npm_cli": "npm CLI",
795796
"atmosphere": "Atmosphere",

lunaria/files/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,7 @@
790790
},
791791
"account_menu": {
792792
"connect": "connect",
793+
"connected": "Connected",
793794
"account": "Account",
794795
"npm_cli": "npm CLI",
795796
"atmosphere": "Atmosphere",

lunaria/files/it-IT.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@
768768
},
769769
"account_menu": {
770770
"connect": "connetti",
771+
"connected": "connesso",
771772
"account": "Account",
772773
"npm_cli": "npm CLI",
773774
"atmosphere": "Atmosphere",

0 commit comments

Comments
 (0)