mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user