website/layouts
Chris Morgan 764a751c5b Fix the semantically very broken search box (#9408)
This was very annoyingly very broken. *Very* broken.

Two primary issues:

1. Autofocus. Autofocus should only be used on a field when it is the
   expected action on the page, because it steals keyboard events such
   as the arrow keys and Space for navigation, and causes users of
   screen readers confusion as they’re thrown into a strange place.

   It’d be just barely OK to use it on search pages, but used on
   *every* page in the documentation, it’s just *super* annoying.

2. Not being a form. I have *no* idea why anyone would ever have
   written it the way it was—it’s just awful from end to end, a bad
   reimplementation of a subset of native browser functionality.
   It’s a form, let it *be* a form.

   Possibly the most baffling part of it was the use of location.replace
   which breaks the back button. I just… why!?

   While I was at it, I gave the search box an aria-label for good
   measure, but I didn’t change its type to "search" because that has
   UI implications on some platforms that I’m too lazy to deal with.

This is still pretty bad, because that magnifying glass is done in CSS
rather than being a fair dinkum submit button, but I just wanted a
quick fix because the autofocus issue is annoying me *so much*.
2018-07-18 15:24:12 -07:00
..
_default Convert site to Hugo (#8316) 2018-05-05 09:00:51 -07:00
blog Add links to forum (#8945) 2018-06-11 17:26:27 -07:00
case-studies Convert site to Hugo (#8316) 2018-05-05 09:00:51 -07:00
community updating KubeCon banners on Community page (#8908) 2018-06-06 18:06:23 -07:00
docs Add Git info to per-page template (#9309) 2018-07-02 16:17:19 -07:00
partials Fix the semantically very broken search box (#9408) 2018-07-18 15:24:12 -07:00
shortcodes Consolidate YAML files [part-2] (#9236) 2018-06-26 09:34:52 -07:00
404.html Convert site to Hugo (#8316) 2018-05-05 09:00:51 -07:00
index.html Convert site to Hugo (#8316) 2018-05-05 09:00:51 -07:00
index.rss.xml Make the RSS refer to Kubernetes, not Hugo. (#9471) 2018-07-11 10:42:25 -07:00
robots.txt Convert site to Hugo (#8316) 2018-05-05 09:00:51 -07:00