Skip to content

Commit

Permalink
Ignore Google ad iframes in accessibility checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecoble committed Sep 11, 2024
1 parent 6d4725f commit 08c9cab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ jobs:
checks: read
pull-requests: write
steps:
- uses: actions/checkout@v4
name: Checkout configuration file
with:
sparse-checkout: |
pa11y-ci.json
sparse-checkout-cone-mode: false
- uses: narthur/pa11y-ratchet@v2
with:
github-token: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -18,6 +24,7 @@ jobs:
include: 'https?:\/\/[\w\.-]+\/en\/'
# Ignore contrast-related errors for now
ignore: WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail,WCAG2AA.Principle1.Guideline1_4.1_4_3.G145.Fail
config-path: pa11y-ci.json
lighthouse:
if: github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions pa11y-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"hideElements": "iframe[src*=\"doubleclick.net\"]"
}

0 comments on commit 08c9cab

Please sign in to comment.