Open
Description
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
- Update the
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. - This issue does not include replacing the references to
/assets/images/wins-page/icon-github-small.svg
in the overlay (in the function updateOverlay) - Note that
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' - Read Create wiki page: how to change the fill color of an svg #6654 to learn how to style svgs
- In this issue we will not modify the GitHub icon in the badge section which is
/assets/images/wins-page/wins-badges/github.svg
- Remove the file currently used graphic file
/assets/images/wins-page/icon-github-small.svg
- Use Docker to preview the Wins page (
/wins
) to ensure that the appearance and behavior of the Wins page is unchanged both in mobile and desktop views.
Resources/Instructions
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Questions / In Review