mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-25 02:52:11 +02:00
web/ProcessingQueueItem: make buttons accessible for screen readers
This commit is contained in:
parent
fdc4f4826d
commit
d337de1f63
@ -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"
|
||||
}
|
||||
|
@ -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 />
|
||||
|
Loading…
x
Reference in New Issue
Block a user