Skip to content

Commit

Permalink
wip! Make flexbox footer work on IE8
Browse files Browse the repository at this point in the history
Adds clearfix and float: left, mainly for IE8, which doesn't support
flexbox.

Using this with flexbox is okay, because `display: flex` causes flex
items to ignore floats and clears [[1]].

This makes our footer work even more like our page "grids".

[1]: https://www.w3.org/TR/css-flexbox-1/#flex-containers
  • Loading branch information
lfdebrux committed Nov 26, 2021
1 parent ea8b65a commit 1be08b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/govuk/components/footer/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
}

.govuk-footer__navigation {
@include govuk-clearfix;
box-sizing: border-box;
display: flex;
margin-right: -$govuk-gutter-half;
Expand All @@ -162,6 +163,7 @@
margin-bottom: $govuk-gutter;
padding-right: $govuk-gutter-half;
padding-left: $govuk-gutter-half;
float: left;
vertical-align: top;
flex-grow: 1;
flex-shrink: 1;
Expand Down

0 comments on commit 1be08b8

Please sign in to comment.