Skip to content

Toolkit page: Make the Guides section cards' SVGs WCAG compliant #2929

@JessicaLucindaCheng

Description

@JessicaLucindaCheng

Overview

We need to edit the guide card SVGs on the Toolkit webpage so that we adhere to the Web Content Accessibility Guidelines (WCAG) and we can achieve our mission of inclusivity.

Action Items

For this issue, we will be adding the alt text property to the guide card images on the Toolkit webpage, which requires the HTML to be refactored.

  • Open _includes/guide-card.html in VS Code or your IDE, then change this line of code
    {% include {{ guide.svg }} %}
    
    to
    <img src={{ guide.svg | absolute_url }} alt="">
    
  • Move the 2FA.svg file from _includes\svg to the assets\images\guides\2FA directory
  • Move the survey-reporting-image.svg file from _includes\svg to the assets\images\guides\survey-reporting directory
  • Update the svg field for _guide-pages/2FA.html from
    svg: svg/2FA.svg
    
    to
    svg: /assets/images/guides/2FA/2FA.svg
    
  • Update the svg field for _guide-pages/survey-reporting-dashboard-guide.html from
    svg: svg/survey-reporting-image.svg
    
    to
    svg: /assets/images/guides/survey-reporting/survey-reporting-image.svg
    
  • Update the svg field from
    svg: svg/default.svg
    
    to
    svg: /assets/images/toolkit-default-card-image.png
    
    for the following files in the _guide-pages directory:
    • creating-kanban-project.html
    • figma-for-opensource-projects.html
    • github-issues.html
    • responsible-use-of-images-on-opensource-projects.html
    • setting-up-1password-on-opensource-project.html
    • showing-civictech-experience-on-linkedin.html
    • updates-team-pages-on-hflasite.html
    • using-kanban-project.html
  • Make sure the space between the image and text is there like how it is on the current live Toolkit webpage for mobile, tablet, and desktop views.
    Details
    Click here to see the spacing which I have indicated with an arrow when viewing the page in desktop view

    • If the spacing is not there, add the spacing back in; in VS Code or your IDE, edit the SCSS file _sass/components/_toolkit.scss and, if needed, edit the HTML in _includes/guide-card.html, such as the SCSS classes applied to the HTML
      • Make sure to reference the Figma design for the Toolkit page to determine the exact spacing for mobile and desktop views
  • Using Docker, make sure changes look good on mobile, tablet, and desktop views using developer tools and that nothing breaks

Resources/Instructions

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions