web/DonateAltItem: add proper aria label
This commit is contained in:
parent
fb1b5ffee2
commit
cda99a96e8
2 changed files with 8 additions and 1 deletions
|
@ -29,5 +29,8 @@
|
|||
|
||||
"share.title": "share cobalt with a friend",
|
||||
|
||||
"alternative.title": "alternative ways to donate"
|
||||
"alternative.title": "alternative ways to donate",
|
||||
|
||||
"alt.copy": "{{ value }}. crypto wallet address. press to copy.",
|
||||
"alt.open": "{{ value }}. donation link, press to open."
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<script lang="ts">
|
||||
import { t } from "$lib/i18n/translations";
|
||||
import { copyURL, openURL } from "$lib/download";
|
||||
|
||||
import CopyIcon from "$components/misc/CopyIcon.svelte";
|
||||
|
@ -20,6 +21,9 @@
|
|||
<div class="wallet-holder">
|
||||
<button
|
||||
class="wallet"
|
||||
aria-label={$t(`donate.alt.${type}`, {
|
||||
value: name,
|
||||
})}
|
||||
on:click={() => {
|
||||
if (type === "copy") {
|
||||
copied = true;
|
||||
|
|
Loading…
Reference in a new issue