Skip to content

Add pa11y as a local and CI test #1227

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

Merged
merged 95 commits into from
May 19, 2021
Merged
Changes from 1 commit
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
c33a6f2
Install pa11y-ci
thisisdano Apr 19, 2021
e1c4e1f
Add pa11y scripts
thisisdano Apr 19, 2021
7220b66
Add pa11y config
thisisdano Apr 19, 2021
f3441de
Ignore pa11y results JSON
thisisdano Apr 19, 2021
5a57652
Add a script to output results to JSON
thisisdano Apr 19, 2021
0b463c5
Remove scope from TDs (fixed 200 errors)
thisisdano Apr 19, 2021
95fa9b9
Don't output figure
thisisdano Apr 19, 2021
043c27c
Improve site-prose formatting
thisisdano Apr 19, 2021
581e229
Use h2s in form controls accessibility include
thisisdano Apr 19, 2021
b988135
Jekyll ignore pa11y output
thisisdano Apr 19, 2021
145787f
Use accessible color for "disabled" utility state content (fixed 250 …
thisisdano Apr 19, 2021
af659b5
Use white bg for sections that need red-50v callout text (30 errors)
thisisdano Apr 19, 2021
422bd09
Don't use aside inside main content (Fixed 100 errors)
thisisdano Apr 19, 2021
c66f183
Add explicit ID to sidenav
thisisdano Apr 19, 2021
bef7b2b
Fix colors on layout grid page (Fixed 100 errors)
thisisdano Apr 19, 2021
77d5d8c
Fix blockquote color in news
thisisdano Apr 19, 2021
31e895e
Reformat and improve headings in header component
thisisdano Apr 19, 2021
2fca5a1
Try 8 concurrent pa11y
thisisdano Apr 19, 2021
fe512b4
Fix list anchor links
thisisdano Apr 19, 2021
d6578df
Add page.type
thisisdano Apr 19, 2021
8ee21ad
Use underscore hack to provide unique labels
thisisdano Apr 20, 2021
5e6dbf7
Exclude variant partials from sitemap
thisisdano May 12, 2021
b57f358
Simplify pa11y expression
thisisdano May 12, 2021
152df77
Remove heds from standalone card
thisisdano May 12, 2021
6e43f01
Increase pa11y timeout
thisisdano May 12, 2021
b6a3a87
Remove unnecessary h-level heds from icon list
thisisdano May 12, 2021
abf79e4
Fix low-contrast caption
thisisdano May 12, 2021
797027b
Use titles for videos and fix hed levels
thisisdano May 12, 2021
71c3f79
Add label to all aria regions
thisisdano May 12, 2021
8383ec7
Show release info as text
thisisdano May 12, 2021
e07186d
Wrap pre-formatted text
thisisdano May 12, 2021
1172ab1
Use text-only releases on migrations page
thisisdano May 12, 2021
1de3a6e
Fix heading order
thisisdano May 12, 2021
917a8a4
Delete template.md
thisisdano May 12, 2021
8255dfd
Allow scrollable elements to be focused
thisisdano May 12, 2021
befa57d
Don't include standalone template pages in sitemap
thisisdano May 12, 2021
e74c1ae
Use proper heading order
thisisdano May 12, 2021
dafd688
Increase timeout
thisisdano May 12, 2021
31c621f
Add a pa11y github action
thisisdano May 12, 2021
4515700
Use latest version of jekyll-sitemap
thisisdano May 12, 2021
6d1e717
Exclude next from pa11y tests [for now]
thisisdano May 12, 2021
d3658a6
Merge branch 'main' into dw-add-pa11y
thisisdano May 12, 2021
a505f3f
Update package-lock.json
thisisdano May 12, 2021
0ab870c
Update dependencies
thisisdano May 12, 2021
988a374
Update package-lock.json
thisisdano May 12, 2021
8a15f9a
Add USWDS build to github action
thisisdano May 12, 2021
8adc0fe
Update pa11y.yml
thisisdano May 12, 2021
4ee4c5e
Use feature branch of USWDS
thisisdano May 12, 2021
32e37ac
Use localhost:4000 as default url
thisisdano May 12, 2021
221f061
Remove axe test from test script
thisisdano May 12, 2021
7ad19f6
Install html-proofer, update proof test, and proof links
thisisdano May 13, 2021
cc99c23
Update CI settings
thisisdano May 13, 2021
b1ccbd2
Use more permissive cache
thisisdano May 13, 2021
e9dbf51
Serve site before testing; run simple tests first
thisisdano May 13, 2021
3567388
Reorganize scripts
thisisdano May 13, 2021
51f0ccc
Update uswds
thisisdano May 13, 2021
692df79
Update circle
thisisdano May 13, 2021
3cc3106
Make sure we build assets in CI environment
thisisdano May 13, 2021
d3e6f3b
Save to proper cache key
thisisdano May 13, 2021
6af4612
Add new serve script options
thisisdano May 13, 2021
d0ff4b4
Use proper heading order
thisisdano May 13, 2021
f23e850
Fix typo in cache key
thisisdano May 13, 2021
0235353
Trigger re-run
thisisdano May 13, 2021
fc3fc2a
Test fewer concurrent processes
thisisdano May 13, 2021
3a3c1e1
Streamline github action
thisisdano May 13, 2021
550e433
Add pa11y to general tests and remove GH action
thisisdano May 13, 2021
1e3cd6a
Attempt 8 concurrent processes
thisisdano May 13, 2021
0d29acd
Attempt 16 concurrent processes
thisisdano May 13, 2021
6b52b6e
Use 8 concurrent as 16 had no performance gain
thisisdano May 13, 2021
f2f231a
Include next section in accessibility scan
thisisdano May 13, 2021
6b83b30
Add a mobile pa11y config and add to tests
thisisdano May 13, 2021
005beea
Fix accessibility issues in next
thisisdano May 13, 2021
3e5241c
Exclude NEXT from accessibility scan
thisisdano May 13, 2021
ded87c4
Remove duplicate script and add a detached site stop script
thisisdano May 16, 2021
46d9810
Update .snyk
thisisdano May 17, 2021
184528c
Use commas for better voicing
thisisdano May 17, 2021
335f94c
Update uswds
thisisdano May 17, 2021
74dad17
Update package-lock.json
thisisdano May 17, 2021
9ab4818
Merge branch 'main' into dw-add-pa11y
thisisdano May 17, 2021
d81ce65
Add note about scrollable tables and focus
thisisdano May 17, 2021
880b78a
Merge branch 'dw-add-pa11y' of github.com:uswds/uswds-site into dw-ad…
thisisdano May 17, 2021
501cdb9
Use uswds:develop branch
thisisdano May 17, 2021
698da13
Fix indents in next-prefooter.
mejiaj May 18, 2021
1dc3db5
State tokens: update subnav ID.
mejiaj May 18, 2021
9c847fa
Use localhost, not 127.0.0.1
thisisdano May 19, 2021
4209571
Add localhost to serve
thisisdano May 19, 2021
a877657
Remove specific url key from config
thisisdano May 19, 2021
b4685bc
Break out different test sections as separate jobs
thisisdano May 19, 2021
a13bba6
Revert "Break out different test sections as separate jobs"
thisisdano May 19, 2021
563ed6c
Improve functionality and readability of component-guidance include
thisisdano May 19, 2021
53aff16
Use localhost for detached server, too
thisisdano May 19, 2021
0940e02
Add page.type to the ID
thisisdano May 19, 2021
d350e0e
Merge branch 'main' into dw-add-pa11y
thisisdano May 19, 2021
492a5a5
Update .snyk
thisisdano May 19, 2021
2d228b1
Merge branch 'dw-add-pa11y' of github.com:uswds/uswds-site into dw-ad…
thisisdano May 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use text-only releases on migrations page
  • Loading branch information
thisisdano committed May 12, 2021
commit 1172ab1d974cdec15b689e74b86a2028af61b0ed
5 changes: 3 additions & 2 deletions pages/documentation/getting-started/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,9 @@ Negative values should use the same migration pattern as positive values. See th
<p class="site-subheading">{{ release.published_at | date: "%B %d, %Y" }}</p>

{% assign id_replace = 'id="v%-' | replace: '%', release.name %}
{{ release.body | markdownify | replace: 'id="', id_replace | remove_relative_links }}

```
{{ release.body | replace: 'id="', id_replace | remove_relative_links }}
```
<hr>
{% endif %}
{% endfor %}