Skip to content

Commit

Permalink
feat: Accessibility improvements (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
evadecker authored Jun 24, 2024
1 parent ba7d298 commit 21537e9
Show file tree
Hide file tree
Showing 15 changed files with 171 additions and 284 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Accessibility
on:
push:
branches: main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Links
name: Valid Links

on:
repository_dispatch:
Expand Down
6 changes: 5 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"recommendations": ["astro-build.astro-vscode", "dbaeumer.vscode-eslint"],
"recommendations": [
"astro-build.astro-vscode",
"dbaeumer.vscode-eslint",
"deque-systems.vscode-axe-linter"
],
"unwantedRecommendations": []
}
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ If you need help with your legal name change or gender marker change, come join
| `src/styles` | Global site styles. |
| `tests` | End-to-end tests written using Playwright. |

## Broken Links
## Accessibility

[![Accessibility](https://github.com/namesakefyi/namesake.fyi/actions/workflows/accessibility.yml/badge.svg)](https://github.com/namesakefyi/namesake.fyi/actions/workflows/accessibility.yml)

Namesake aims to conform to the Level AA accessibility standards outlined in the [WCAG 2.2 specification](https://www.w3.org/TR/WCAG22/). If you experience an issue with accessing any part of this site, please [file an issue](https://github.com/namesakefyi/namesake.fyi/issues) and we will correct it.

## Link Checking

[![Valid Links](https://github.com/namesakefyi/namesake.fyi/actions/workflows/links.yml/badge.svg)](https://github.com/namesakefyi/namesake.fyi/actions/workflows/links.yml)

A weekly [GitHub workflow](https://github.com/namesakefyi/namesake.fyi/actions/workflows/links.yml) scans the site for broken links and will open an [issue](https://github.com/namesakefyi/namesake.fyi/issues) if one is found.
9 changes: 1 addition & 8 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
import eslintPluginAstro from "eslint-plugin-astro";

export default [
...eslintPluginAstro.configs.recommended,
{
rules: {
"eol-last": "always",
},
},
];
export default [...eslintPluginAstro.configs["jsx-a11y-recommended"]];
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"lint": "eslint .",
"test": "playwright test --reporter=html",
"check-links": "lychee --config .lychee.toml ."
},
Expand All @@ -34,8 +35,8 @@
"devDependencies": {
"@playwright/test": "^1.44.1",
"@types/node": "^20.14.8",
"@typescript-eslint/parser": "^7.13.1",
"eslint": "^8.57.0",
"@typescript-eslint/parser": "^7.14.1",
"eslint": "^9.5.0",
"eslint-plugin-astro": "^1.2.2",
"eslint-plugin-jsx-a11y": "^6.9.0",
"prettier": "^3.3.2",
Expand Down
2 changes: 0 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ export default defineConfig({
baseURL: "http://localhost:4321",
trace: "on-first-retry",
},

projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],

webServer: {
command: "pnpm dev",
url: "http://localhost:4321",
Expand Down
Loading

0 comments on commit 21537e9

Please sign in to comment.