Open joshfishman opened 1 month ago
4/13/24 Is there a specific accessibility standard that we are trying to comply with? WCAG2A, WCAG2AA, or WCAG2AAA
What type of messages do we want from pa11y? notice? warning? error?
Pa11y identified several issues with how mkdocs generates a page from markdown files. One notable error that was logged in my integrated terminal concerns an anchor <a>
element in the HTML. The error message from pa11y stated: "Anchor element found with a valid href attribute, but no link content has been supplied."
It's unclear how mkdocs handles these elements internally, but pa11y flagged this as a problem because it can affect website accessibility.
Pa11y cited: WCAG2AA.Principle1.Guideline1_3.1_3_1.F68
https://docs.google.com/spreadsheets/d/12YkgTAsDeNIn9DZApfZ478mMONlqnO0QTK3kjdFBmyU/edit?usp=sharing
On the spreadsheet, make a tab for all the pages, and add a column to indicate which page, so that we can sort by type of error (in code column). This will help with the evaluation.
I looked for Visual Studio Code accessibility plug-ins and found none that would meet our needs. The plug-ins I did find were linters that would not export error/warning messages (e.g., Axe)
Next step is to the create the spreadsheet which is all the errors on one sheet.
Created a single Google Sheet with errors from the entire microsite.
Code | Count | Message |
---|---|---|
WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.A.NoContent | 1,337 | Anchor element found with a valid href attribute, but no link content has been supplied. |
WCAG2AA.Principle3.Guideline3_2.3_2_2.H32.2 | 8 | This form does not contain a submit button, which creates issues for those who cannot submit the form using the keyboard. |
WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.InputCheckbox.Name | 6 | This checkboxinput element does not have a name available to an accessibility API. Valid names are: label element, title undefined, aria-label undefined, aria-labelledby undefined. |
WCAG2AA.Principle1.Guideline1_3.1_3_1.F68 | 28 | This form field should be labelled in some way... |
WCAG2AA.Principle1.Guideline1_4.1_4_3.G145.Fail | 9 | This element has insufficient contrast at this conformance level. Expected a contrast ratio of at least 3:1... |
WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.InputText.Name | 9 | This textinput element does not have a name available to an accessibility API. Valid names are: label element, title undefined, aria-label undefined ... |
WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.InputRadio.Name | 10 | This radioinput element does not have a name available to an accessibility API. Valid names are: label element, title undefined, aria-label undefined ... |
WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.Textarea.Name | 3 | This textarea element does not have a name available to an accessibility API. Valid names are: label element, title undefined, aria-label undefined, aria-labelledby undefined. |
@aconstas Please provide update
Overview
We need to setup testing for the Design System microsite so we can automate accessibility testing and ensure that the design system meets accessibility standards
Action Items
Resources/Instructions