www: fix accessibility issues (#1243)
Address accessibility issues pointed out by Lighthouse.
This commit is contained in:
@@ -4,6 +4,7 @@ export default function DocsTitle(props: { title: string }) {
|
||||
<a
|
||||
href="/"
|
||||
class="text(2xl gray-900) flex items-center"
|
||||
aria-label="Top Page"
|
||||
>
|
||||
<svg
|
||||
preserveAspectRatio="xMinYMin"
|
||||
|
||||
@@ -25,7 +25,7 @@ export default function Header(props: { title: string; active: string }) {
|
||||
|
||||
function Logo() {
|
||||
return (
|
||||
<a href="/" class="flex mr-3 items-center">
|
||||
<a href="/" class="flex mr-3 items-center" aria-label="Top Page">
|
||||
<img
|
||||
src="/logo.svg"
|
||||
alt="Fresh logo"
|
||||
|
||||
@@ -44,6 +44,7 @@ export default function NavigationBar(
|
||||
<a
|
||||
href="https://github.com/denoland/fresh"
|
||||
class="hover:text-green-600 inline-block"
|
||||
aria-label="GitHub"
|
||||
>
|
||||
<Icons.GitHub />
|
||||
</a>
|
||||
|
||||
@@ -48,7 +48,7 @@ const Slide = (props: SlideProps) => {
|
||||
class={`${props.class} ${color} h-80 w-full text-center text-black p-5`}
|
||||
>
|
||||
{text}
|
||||
<img src={url} />
|
||||
<img src={url} alt={text} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -67,6 +67,7 @@ export default function Footer({ children }: Props) {
|
||||
<a
|
||||
href="https://github.com/denoland/fresh"
|
||||
class="inline-block hover:text-black"
|
||||
aria-label="GitHub"
|
||||
>
|
||||
<BrandGithub />
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user