web/DonateShareCard: add alt text for qr code
This commit is contained in:
parent
b71d51de21
commit
5e0824022c
2 changed files with 9 additions and 1 deletions
4
web/i18n/en/a11y/donate.json
Normal file
4
web/i18n/en/a11y/donate.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"share.qr.expand": "qr code. press to expand.",
|
||||
"share.qr.collapse": "expanded qr code. press to collapse."
|
||||
}
|
|
@ -40,6 +40,9 @@
|
|||
on:click={() => {
|
||||
expanded = !expanded;
|
||||
}}
|
||||
aria-label={$t(
|
||||
`a11y.donate.share.qr.${expanded ? "collapse" : "expand"}`
|
||||
)}
|
||||
>
|
||||
<CobaltQr />
|
||||
</button>
|
||||
|
@ -228,7 +231,8 @@
|
|||
:global(#share-box.expanded) {
|
||||
margin-bottom: unset;
|
||||
z-index: unset;
|
||||
box-shadow: 0 0 0 2px rgba(255, 255, 255, var(--donate-border-opacity)) inset;
|
||||
box-shadow: 0 0 0 2px
|
||||
rgba(255, 255, 255, var(--donate-border-opacity)) inset;
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue