From ded79af43fad5ae0ec35739f655bf9e0c141a559 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Tue, 30 May 2023 19:41:21 +0200 Subject: Add missing skip link to 404 page --- .changeset/few-zoos-cheat.md | 5 +++++ packages/starlight/404.astro | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 .changeset/few-zoos-cheat.md diff --git a/.changeset/few-zoos-cheat.md b/.changeset/few-zoos-cheat.md new file mode 100644 index 00000000..c5c4b389 --- /dev/null +++ b/.changeset/few-zoos-cheat.md @@ -0,0 +1,5 @@ +--- +"@astrojs/starlight": patch +--- + +Add missing skip link to 404 page diff --git a/packages/starlight/404.astro b/packages/starlight/404.astro index 00d0cab0..c5d21a3f 100644 --- a/packages/starlight/404.astro +++ b/packages/starlight/404.astro @@ -1,5 +1,6 @@ --- import config from 'virtual:starlight/user-config'; +import { withBase } from './utils/base'; // Built-in CSS styles. import './style/props.css'; @@ -14,10 +15,10 @@ import PageFrame from './layout/PageFrame.astro'; import Header from './components/Header.astro'; import MarkdownContent from './components/MarkdownContent.astro'; import ThemeProvider from './components/ThemeProvider.astro'; +import SkipLink from './components/SkipLink.astro'; // Important that this is the last import so it can override built-in styles. import 'virtual:starlight/user-css'; -import { withBase } from './utils/base'; const { lang = 'en', dir = 'ltr', locale } = config.defaultLocale || {}; --- @@ -30,6 +31,7 @@ const { lang = 'en', dir = 'ltr', locale } = config.defaultLocale || {}; +
@@ -37,9 +39,8 @@ const { lang = 'en', dir = 'ltr', locale } = config.defaultLocale || {};

404

Houston, we have a problem.

- We couldn’t find that link. Check the address or head back home. + We couldn’t find that link. Check the address or + head back home.

-- cgit