1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-22 15:47:30 +00:00

Add aria-label to search inputs

References: https://todo.sr.ht/~cadence/tube/46
This commit is contained in:
Cadence Ember 2021-12-16 12:02:06 +13:00
parent b9f703086f
commit 5a5901db7d
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17
2 changed files with 2 additions and 2 deletions

View File

@ -11,5 +11,5 @@ block content
p You're in control. Watch things your way. p You're in control. Watch things your way.
p Go on. What do you want to watch? p Go on. What do you want to watch?
form(method="get" action="/search").encouraging-search-form 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? p: a(href="/cant-think") ...can't think of anything?

View File

@ -23,7 +23,7 @@ html
image(href=getStaticURL("html", "/static/images/settings.svg") alt="Settings.").icon image(href=getStaticURL("html", "/static/images/settings.svg") alt="Settings.").icon
title Settings title Settings
form(method="get" action="/search").search-form 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 div
block content block content