Skip to content

Commit 647b49d

Browse files
feat: add copy for button aria label
1 parent b6f7235 commit 647b49d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

app/components/Package/ActionBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ onKeyStroke(
4848
<button
4949
@click="clearSelectedPackages"
5050
class="flex items-center ms-1 text-fg-muted hover:(text-fg bg-accent/10) p-1.5 rounded-lg transition-colors"
51-
aria-label="Close action bar"
51+
:aria-label="$t('action_bar.button_close_aria_label')"
5252
>
5353
<span class="i-lucide:x text-sm" aria-hidden="true" />
5454
</button>

i18n/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,7 @@
13731373
"action_bar": {
13741374
"title": "action bar",
13751375
"selection": "0 selected | 1 selected | {count} selected",
1376-
"shortcut": "Press \"{key}\" to focus actions"
1376+
"shortcut": "Press \"{key}\" to focus actions",
1377+
"button_close_aria_label": "Close action bar"
13771378
}
13781379
}

i18n/schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4125,6 +4125,9 @@
41254125
},
41264126
"shortcut": {
41274127
"type": "string"
4128+
},
4129+
"button_close_aria_label": {
4130+
"type": "string"
41284131
}
41294132
},
41304133
"additionalProperties": false

0 commit comments

Comments
 (0)