mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-25 11:02:13 +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",
|
"hide_input": "hide input",
|
||||||
"restore_input": "restore input",
|
"restore_input": "restore input",
|
||||||
"clear_input": "clear 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}
|
{#if info.state === "done" && info.resultFile}
|
||||||
<button
|
<button
|
||||||
class="button action-button"
|
class="button action-button"
|
||||||
|
aria-label={$t("button.download")}
|
||||||
on:click={() => download(info.resultFile)}
|
on:click={() => download(info.resultFile)}
|
||||||
>
|
>
|
||||||
<IconDownload />
|
<IconDownload />
|
||||||
@ -172,6 +173,7 @@
|
|||||||
{#if info.state === "error" && info?.canRetry}
|
{#if info.state === "error" && info?.canRetry}
|
||||||
<button
|
<button
|
||||||
class="button action-button"
|
class="button action-button"
|
||||||
|
aria-label={$t("button.retry")}
|
||||||
on:click={() => retry(info)}
|
on:click={() => retry(info)}
|
||||||
>
|
>
|
||||||
<IconReload />
|
<IconReload />
|
||||||
@ -179,6 +181,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<button
|
<button
|
||||||
class="button action-button"
|
class="button action-button"
|
||||||
|
aria-label={$t(`button.${info.state === "done" ? "delete" : "remove"}`)}
|
||||||
on:click={() => removeItem(id)}
|
on:click={() => removeItem(id)}
|
||||||
>
|
>
|
||||||
<IconX />
|
<IconX />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user