From 829c3b6daf58d4cbe2af7b663f0f4b78ee8c8dc3 Mon Sep 17 00:00:00 2001 From: plx Date: Sun, 2 Nov 2025 18:33:07 -0600 Subject: [PATCH] Improve accessibility navigation and controls --- eslint.config.js | 2 +- src/components/BackToPrev.astro | 8 ++- src/components/BackToTop.astro | 8 ++- src/components/Footer.astro | 11 ++- src/components/Head.astro | 121 ++++++++++++++++++++++---------- src/components/Header.astro | 51 +++++++++----- src/components/Link.astro | 3 +- src/layouts/PageLayout.astro | 3 +- src/styles/global.css | 30 ++++++++ 9 files changed, 172 insertions(+), 65 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 764f873..9425937 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -91,7 +91,7 @@ export default [ }, rules: { ...astro.configs.recommended.rules, - ...astro.configs["jsx-a11y-recommended"].rules, + ...astro.configs["jsx-a11y-strict"].rules, "no-undef": "off", // TypeScript handles this }, }, diff --git a/src/components/BackToPrev.astro b/src/components/BackToPrev.astro index 5cce7d2..aca2c07 100644 --- a/src/components/BackToPrev.astro +++ b/src/components/BackToPrev.astro @@ -6,10 +6,12 @@ type Props = { const { href } = Astro.props; --- - - +
© 2024 {`|`} {SITE.NAME}
-
+
-
diff --git a/src/components/Link.astro b/src/components/Link.astro index 2014ca2..ab38b56 100644 --- a/src/components/Link.astro +++ b/src/components/Link.astro @@ -12,7 +12,8 @@ const { href, external, underline = true, ...rest } = Astro.props;
diff --git a/src/layouts/PageLayout.astro b/src/layouts/PageLayout.astro index bb8017c..fdb6947 100644 --- a/src/layouts/PageLayout.astro +++ b/src/layouts/PageLayout.astro @@ -22,8 +22,9 @@ const plainTitle = stripMarkdown(title); +
-
+