From 9c941250c3e4ce7bb1cf4c96e0c28eb9b8199576 Mon Sep 17 00:00:00 2001 From: Ayo Date: Wed, 14 Jun 2023 18:10:30 +0200 Subject: [PATCH] a11y: add accessible button names --- src/components/AddressBar.astro | 6 +++--- src/layouts/Layout.astro | 17 +++++++++++++++-- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/components/AddressBar.astro b/src/components/AddressBar.astro index b21725b..b8fbf83 100644 --- a/src/components/AddressBar.astro +++ b/src/components/AddressBar.astro @@ -8,14 +8,14 @@ const { url } = Astro.props;
- - -
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index a967329..2c8980b 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -4,8 +4,8 @@ import "./reset.css"; export interface Props { meta: ArticleData } -const appTitle = "Cozy 🧸"; const { meta } = Astro.props; +const appTitle = `Cozy 🧸${meta.title && `| ${meta.title}`}`; --- @@ -14,7 +14,20 @@ const { meta } = Astro.props; - {appTitle} {meta.title && `| ${meta.title}`} + {appTitle} + + { + meta.url !== '/' ? ( + + + ) : ( + + + + + + ) + }