Use JS for applying focus & add styling for it

Adds some extra styles so <fieldset>'s show as
focused when they are.

Also includes replacement of `overflow: hidden` on
sticky elements with a clearfix. hiding overflow
clips the outline and the clearfix can be used for
containing any floats instead. (I'm assuming that's
why it was set here.)
This commit is contained in:
Tom Byers
2019-01-29 15:53:59 +00:00
parent 0c823db970
commit 2b2641b039
2 changed files with 26 additions and 6 deletions

View File

@@ -4,11 +4,16 @@
.js-stick-at-top-when-scrolling,
.js-stick-at-bottom-when-scrolling {
overflow: hidden;
@extend %contain-floats;
margin-left: -$gutter-half;
padding: 10px 0 0 $gutter-half;
position: relative;
fieldset:focus {
outline: solid 3px $focus-colour;
outline-offset: $gutter-half;
}
.form-group {
margin-bottom: 20px;
}