-
-
Notifications
You must be signed in to change notification settings - Fork 777
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
Update wins.js so the Wins page uses icon-github.svg
#6911
Comments
This comment has been minimized.
This comment has been minimized.
icon-github.svg
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
Hi @izma-mujeeb, thank you for taking up this issue! Hfla appreciates you :) Do let fellow developers know about your:- You're awesome! P.S. - You may not take up another issue until this issue gets merged (or closed). Thanks again :) |
Availability: Mon-Fri 5PM - 9PM |
I have a blocker. |
@izma-mujeeb @t-will-gillis
UpdateAfter prepending the file path with
|
At the office hour today, we looked through other files that use svg images in a JavaScript file, and tested to see if the following URL would work: |
These are the svgs that are in _includes folders Here is the search I used
Here is the JavaScript file that has references to svgs that are in the _includes folder website/assets/js/hamburger-nav.js Lines 14 to 16 in 9115924
website/assets/js/hamburger-nav.js Lines 34 to 39 in 9115924
|
|
@izma-mujeeb please submit a draft pr. You submit a PR as normal and then change it to draft by clicking on the link that looks like this, under the assignees. Once you done that, stick this issue back into the questions column with a |
@ExperimentsInHonesty @roslynwythe I submitted a PR and have moved this issue back into questions column with the ready for dev lead label. |
@roslynwythe spoke with @izma-mujeeb and revised the issue to make it clearer and reduce scope. See details in PR |
Overview
We need to update the code that renders the GitHub icon on the Wins page, to display
_includes/svg/icon-github.svg
instead of/assets/images/wins-page/icon-github-small.svg
, in order to reduce the number of duplicate images.Action Items
makeCards
function inassets/js/wins.js
and the HTML template in_includes/wins-page/wins-card-template.html/wins-card-template.html
so that the reference to/assets/images/wins-page/icon-github-small.svg
in the wins cards are changed to_includes/svg/icon-github.svg
. The icon will be displayed using ansvg
html element instead of animg
element./assets/images/wins-page/icon-github-small.svg
in the overlay (in the function updateOverlay)svg
tags do not support analt
attribute for accessibility. Read making SVGs WCAG compliant to understand how an SVG can be made accessible. Select a method described in the section "Use an ARIA label in thediv
HTML tag wrapping the SVG" or the section "Use an outer SVG witharia-label
oraria-labelledby". Again this will require updates to
assets/js/wins.jsand
_includes/wins-page/wins-card-template.html/wins-card-template.html'/assets/images/wins-page/wins-badges/github.svg
/assets/images/wins-page/icon-github-small.svg
/wins
) to ensure that the appearance and behavior of the Wins page is unchanged both in mobile and desktop views.Resources/Instructions
The text was updated successfully, but these errors were encountered: