all repos — searchix @ 054d2b3bf7eb4c5a5401565e86031f22ea754062

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: improve accessibility and browser behaviour

Alan Pearce
commit

054d2b3bf7eb4c5a5401565e86031f22ea754062

parent

d6e117bb9aeb2bae23dedd51b59b6e6f139e8a4f

1 file changed, 13 insertions(+), 3 deletions(-)

changed files
M frontend/templates/blocks/search.gotmplfrontend/templates/blocks/search.gotmpl
@@ -1,8 +1,18 @@
{{- define "main" }} - <form id="search"> - <label for="query">{{ .Source.Name }} option search</label> + <form id="search" role="search"> <fieldset> - <input id="query" name="query" type="search" value="{{ .Query }}" /> + <legend id="legend"> + <h2>{{ sourceNameAndType .Source }} search</h2> + </legend> + <input + id="query" + aria-labelledby="legend" + name="query" + type="search" + value="{{ .Query }}" + autofocus + spellcheck="false" + /> <button>Search</button> </fieldset> </form>