mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +00:00
web/DonateOptionsCard: better accessibility
This commit is contained in:
parent
d4e91f2a1c
commit
c94266a127
2 changed files with 14 additions and 3 deletions
|
@ -15,5 +15,7 @@
|
|||
"card.option.5": "cup of coffee",
|
||||
"card.option.10": "full size pizza",
|
||||
"card.option.15": "full lunch",
|
||||
"card.option.30": "lunch for two"
|
||||
"card.option.30": "lunch for two",
|
||||
|
||||
"card.custom.submit": "donate custom amount"
|
||||
}
|
||||
|
|
|
@ -50,12 +50,14 @@
|
|||
</script>
|
||||
|
||||
<div id="donation-box">
|
||||
<div id="donation-types">
|
||||
<div id="donation-types" role="tablist" aria-orientation="horizontal">
|
||||
<button
|
||||
id="donation-type-once"
|
||||
class="donation-type"
|
||||
on:click={() => (processor = "stripe")}
|
||||
class:selected={processor === "stripe"}
|
||||
aria-selected={processor === "stripe"}
|
||||
role="tab"
|
||||
>
|
||||
<div class="donation-type-icon"><IconCoin /></div>
|
||||
<div class="donation-title">{$t("donate.card.once")}</div>
|
||||
|
@ -68,6 +70,8 @@
|
|||
class="donation-type"
|
||||
on:click={() => (processor = "liberapay")}
|
||||
class:selected={processor === "liberapay"}
|
||||
aria-selected={processor === "liberapay"}
|
||||
role="tab"
|
||||
>
|
||||
<div class="donation-type-icon"><IconCalendarRepeat /></div>
|
||||
<div class="donation-title">{$t("donate.card.monthly")}</div>
|
||||
|
@ -111,7 +115,12 @@
|
|||
on:keydown={(e) => e.key === "Enter" && sendCustom()}
|
||||
/>
|
||||
</div>
|
||||
<button id="donation-custom-submit" on:click={sendCustom}>
|
||||
<button
|
||||
id="donation-custom-submit"
|
||||
on:click={sendCustom}
|
||||
aria-label={$t("donate.card.custom.submit")}
|
||||
type="submit"
|
||||
>
|
||||
<IconArrowRight />
|
||||
</button>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue