web/Omnibox: add aria label for loading captcha state

This commit is contained in:
wukko 2024-09-22 16:22:18 +06:00
parent 1473f220cb
commit 490bdb729e
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
2 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,6 @@
{ {
"link_area": "link input area", "link_area": "link input area",
"link_area.turnstile": "link input area. checking if you're not a robot.",
"clear_input": "clear input", "clear_input": "clear input",
"download": "download", "download": "download",
"download.think": "processing the link...", "download.think": "processing the link...",

View file

@ -140,7 +140,10 @@
class:focused={isFocused} class:focused={isFocused}
class:downloadable={validLink($link)} class:downloadable={validLink($link)}
> >
<div id="input-link-icon" class:loading={isLoading || isBotCheckOngoing}> <div
id="input-link-icon"
class:loading={isLoading || isBotCheckOngoing}
>
{#if isLoading || isBotCheckOngoing} {#if isLoading || isBotCheckOngoing}
<IconLoader2 /> <IconLoader2 />
{:else} {:else}
@ -160,7 +163,9 @@
autocapitalize="off" autocapitalize="off"
maxlength="512" maxlength="512"
placeholder={$t("save.input.placeholder")} placeholder={$t("save.input.placeholder")}
aria-label={$t("a11y.save.link_area")} aria-label={isBotCheckOngoing
? $t("a11y.save.link_area.turnstile")
: $t("a11y.save.link_area")}
data-form-type="other" data-form-type="other"
disabled={isDisabled} disabled={isDisabled}
/> />