From 5a5901db7df2e1f5d53f5b399212195d09cfd7b9 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Thu, 16 Dec 2021 12:02:06 +1300 Subject: [PATCH] Add aria-label to search inputs References: https://todo.sr.ht/~cadence/tube/46 --- pug/home.pug | 2 +- pug/includes/layout.pug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pug/home.pug b/pug/home.pug index f71d2c4..5abafaf 100644 --- a/pug/home.pug +++ b/pug/home.pug @@ -11,5 +11,5 @@ block content p You're in control. Watch things your way. p Go on. What do you want to watch? form(method="get" action="/search").encouraging-search-form - input(type="text" name="q" placeholder="I'd like to watch..." autocomplete="off" autofocus=!mobile).search.base-border-look + input(type="text" name="q" placeholder="I'd like to watch..." aria-label="Search a video" autocomplete="off" autofocus=!mobile).search.base-border-look p: a(href="/cant-think") ...can't think of anything? diff --git a/pug/includes/layout.pug b/pug/includes/layout.pug index 62504ae..c837122 100644 --- a/pug/includes/layout.pug +++ b/pug/includes/layout.pug @@ -23,7 +23,7 @@ html image(href=getStaticURL("html", "/static/images/settings.svg") alt="Settings.").icon title Settings form(method="get" action="/search").search-form - input(type="text" placeholder="Search" name="q" autocomplete="off" value=query).search + input(type="text" placeholder="Search" aria-label="Search a video" name="q" autocomplete="off" value=query).search div block content