mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/Omnibox: add aria label for loading captcha state
This commit is contained in:
parent
1473f220cb
commit
490bdb729e
2 changed files with 8 additions and 2 deletions
|
@ -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...",
|
||||||
|
|
|
@ -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}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue