From 6d7de2ee14e43bebf4fe7b9909806b644b58123a Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 15 May 2020 16:36:33 +0200 Subject: [PATCH] landing page: set focus on search field Also updates the CSS to reduce the "focus highlight" applied by browsers. Signed-off-by: Sebastiaan van Stijn --- _includes/body-landing.html | 1 + _scss/_landing.scss | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/_includes/body-landing.html b/_includes/body-landing.html index 7e034c7385..5c7641a62c 100644 --- a/_includes/body-landing.html +++ b/_includes/body-landing.html @@ -71,6 +71,7 @@ autocomplete="off" spellcheck="false" dir="auto" + autofocus /> diff --git a/_scss/_landing.scss b/_scss/_landing.scss index 7092a62b77..a934979a57 100644 --- a/_scss/_landing.scss +++ b/_scss/_landing.scss @@ -105,6 +105,11 @@ body#landing { height: 50px; line-height: 24px; padding: 13px 20px; + + &:focus { + box-shadow: none; + outline: none; + } } }