-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix accessibility: add missing labels to fundraising SVG and images #2553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |||||
| <div class="fundraising-index" id="donate"> | ||||||
|
|
||||||
| <div class="fundraising-heart" data-percent="{{ goal_percent }}"> | ||||||
| <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 503 431"> | ||||||
| <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 503 431" role="img" aria-label="{% blocktranslate trimmed %}Fundraising progress: {{ goal_percent }} funded{% endblocktranslate %}"> | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this needs a "%", since right now it reads "Fundraising progress: 0 funded" which to me seems like an absolute number rather than a %
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also since this is new text, I think we might need to add this as new messages to |
||||||
| <switch> | ||||||
| <g> | ||||||
| <g transform="translate(4, 2)" id="pixels"> | ||||||
|
|
@@ -13,7 +13,7 @@ | |||||
| <text x="50%" y="43%" alignment-baseline="middle" text-anchor="middle">{{ goal_percent|floatformat:'0' }}%</text> | ||||||
| </g> | ||||||
| <foreignObject> | ||||||
| <img src="{% static 'img/fundraising-heart.svg' %}" /> | ||||||
| <img src="{% static 'img/fundraising-heart.svg' %}" alt="{% translate 'Fundraising heart logo' %}" /> | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this needed? I tested with a screen reader and this doesn't get read out but I tbh I think just the label from above is enough |
||||||
| </foreignObject> | ||||||
| </switch> | ||||||
| </svg> | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this change? It seems unrelated to the heart image