diff --git a/AGENTS.md b/AGENTS.md index e15b631..008f40b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -108,8 +108,8 @@ Only one notes block per slide: ### Required Elements Keep these in the `` for proper presentation functionality: ```html -
-
+ +
Leaving slide mode.
``` diff --git a/index.html b/index.html index 4339043..d7b4e70 100644 --- a/index.html +++ b/index.html @@ -24,8 +24,8 @@ -
-
+ +
Leaving slide mode.
diff --git a/package.json b/package.json index 9cbba1b..4b376a9 100644 --- a/package.json +++ b/package.json @@ -9,11 +9,11 @@ "test:html": "html-validate -c .htmlvalidate.json '*.html'", "test:a11y": "pa11y-ci --config .pa11yci.json || true", "test:headings": "node scripts/test-heading-order.js", - "test:main-landmark": "bash scripts/check-main-landmark.sh", + "test:landmarks": "bash scripts/test-landmarks.sh", "test:links": "bash scripts/check-links.sh", "test:spell": "cspell '**/*.{md,html,js,css}' || true", "test:css": "bash scripts/validate-css.sh", - "test:all": "npm run test:html && npm run test:css && npm run test:main-landmark && npm run test:links && npm run test:spell", + "test:all": "npm run test:html && npm run test:landmarks && npm run test:css && npm run test:links && npm run test:spell", "test": "npm run test:all" }, "repository": { diff --git a/scripts/test-landmarks.sh b/scripts/test-landmarks.sh new file mode 100755 index 0000000..f4dac3e --- /dev/null +++ b/scripts/test-landmarks.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +# Test that progress and clock elements are contained in landmark regions +# This prevents regression of the accessibility issue where these elements +# were not contained by landmarks. + +set -e + +echo "🔍 Testing landmark accessibility..." + +# Check if progress and clock elements use