web/ProcessingQueueItem: make buttons accessible for screen readers

This commit is contained in:
wukko
2025-05-14 22:25:46 +06:00
parent fdc4f4826d
commit d337de1f63
2 changed files with 7 additions and 1 deletions

View File

@@ -22,5 +22,8 @@
"hide_input": "hide input",
"restore_input": "restore input",
"clear_input": "clear input",
"clear_cache": "clear cache"
"clear_cache": "clear cache",
"remove": "remove",
"retry": "retry",
"delete": "delete"
}

View File

@@ -162,6 +162,7 @@
{#if info.state === "done" && info.resultFile}
<button
class="button action-button"
aria-label={$t("button.download")}
on:click={() => download(info.resultFile)}
>
<IconDownload />
@@ -172,6 +173,7 @@
{#if info.state === "error" && info?.canRetry}
<button
class="button action-button"
aria-label={$t("button.retry")}
on:click={() => retry(info)}
>
<IconReload />
@@ -179,6 +181,7 @@
{/if}
<button
class="button action-button"
aria-label={$t(`button.${info.state === "done" ? "delete" : "remove"}`)}
on:click={() => removeItem(id)}
>
<IconX />