Skip to content

Commit

Permalink
fixes to H30.2 accessibility rule
Browse files Browse the repository at this point in the history
  • Loading branch information
lcflight committed Oct 11, 2024
1 parent 653c649 commit 0257634
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 12 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: E2E
on: [deployment_status]
jobs:
accessibility:
if: github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
permissions:
checks: read
pull-requests: write
steps:
- name: Log Deployment Status
run: echo "Deployment URL- ${{ github.event.deployment_status.environment_url }}"
- uses: narthur/pa11y-ratchet@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
sitemap-url: ${{ github.event.deployment_status.environment_url }}/sitemap-0.xml
find: https://blog.beeminder.com
replace: ${{ github.event.deployment_status.environment_url }}
config-path: .pa11yci.json
3 changes: 3 additions & 0 deletions .pa11yci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"hideElements": ".typography .inner *"
}
26 changes: 14 additions & 12 deletions src/components/Posts.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@ const { posts } = Astro.props;
<li>
<Shadowbox>
<Typography small sans>
{p.image && (
<a class="thumbnail" href={`/${p.slug}`}>
<Img
src={p.image.src}
alt={p.image.alt}
title={p.image.title}
width="200"
height="200"
/>
</a>
)}
<div class="post-meta"><PostMeta post={p} /></div>
{p.image && (
<a class="thumbnail" href={`/${p.slug}`}>
<Img
src={p.image.src}
alt={p.image.alt || p.title}
title={p.image.title}
width="200"
height="200"
/>
</a>
)}
<div class="post-meta">
<PostMeta post={p} />
</div>
</Typography>
</Shadowbox>
</li>
Expand Down

0 comments on commit 0257634

Please sign in to comment.