From 68aa6b1502f2f9ae960b9c7f2f1703a797897cc0 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Wed, 14 Jun 2023 18:12:53 +0200 Subject: [PATCH] a11y: add accessible button names (#40) * a11y: add accessible button names * 0.1.16 --- package-lock.json | 4 ++-- package.json | 2 +- src/components/AddressBar.astro | 6 +++--- src/layouts/Layout.astro | 17 +++++++++++++++-- 4 files changed, 21 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 219c8bd..835f63c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ayco/cozy", - "version": "0.1.15", + "version": "0.1.16", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@ayco/cozy", - "version": "0.1.15", + "version": "0.1.16", "dependencies": { "@astrojs/netlify": "^2.2.2", "@extractus/article-extractor": "^7.2.15", diff --git a/package.json b/package.json index 58fe8f9..d9a9149 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ayco/cozy", - "version": "0.1.15", + "version": "0.1.16", "scripts": { "start": "astro dev", "build": "astro build" 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 !== '/' ? ( + + + ) : ( + + + + + + ) + }