From 9cae8fdd5cb31f920efc10402d01da31ab9e90ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20H=C3=A5rek=20Andreassen?= Date: Sat, 22 Jul 2023 20:23:42 +0200 Subject: [PATCH] www: improve accessbility (#1507) --- www/components/DocsSidebar.tsx | 2 +- www/components/DocsTitle.tsx | 2 +- www/components/FeatureIcons.tsx | 6 ++++++ www/components/Icons.tsx | 5 +++++ www/components/gallery/Carousel.tsx | 27 +++++++++++++++++---------- www/components/gallery/Features.tsx | 9 ++++++--- www/components/gallery/Footer.tsx | 4 ++-- www/components/gallery/Header.tsx | 2 +- www/components/gallery/Hero.tsx | 7 +++++-- www/islands/ComponentGallery.tsx | 10 ++++++++-- www/islands/CopyArea.tsx | 4 ++-- www/islands/VersionSelect.tsx | 2 +- www/routes/index.tsx | 11 ++++++----- 13 files changed, 61 insertions(+), 30 deletions(-) diff --git a/www/components/DocsSidebar.tsx b/www/components/DocsSidebar.tsx index 47eb988e..f1925067 100644 --- a/www/components/DocsSidebar.tsx +++ b/www/components/DocsSidebar.tsx @@ -71,7 +71,7 @@ export default function DocsSidebar( } const link = "text(gray-900 hover:gray-600)"; -const linkActive = "text(green-600 hover:green-500) font-bold"; +const linkActive = "text-green-700 hover:underline font-bold"; export function SidebarCategory(props: { path: string; diff --git a/www/components/DocsTitle.tsx b/www/components/DocsTitle.tsx index aad07ee3..07abce35 100644 --- a/www/components/DocsTitle.tsx +++ b/www/components/DocsTitle.tsx @@ -10,9 +10,9 @@ export default function DocsTitle(props: { title: string }) { preserveAspectRatio="xMinYMin" viewBox="0 0 250 75" fill="none" - alt="Fresh logo" xmlns="http://www.w3.org/2000/svg" class="h-5 inline-block" + aria-label="Fresh logo" >