Skip to content

Commit

Permalink
Fix for without JS and cleaning
Browse files Browse the repository at this point in the history
* Fixed styles so link appears correctly if JS disabled
* Removed unnecessary class --stuck-to-parent
  • Loading branch information
andysellick committed Jun 8, 2017
1 parent 2a38862 commit 01af70e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/assets/stylesheets/modules/_sticky-element-container.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
.govuk-sticky-element {
.js-enabled .govuk-sticky-element {
position: absolute;
bottom: 0;

&--stuck-to-parent {
bottom: 0;
position: absolute;
}

&--stuck-to-window {
bottom: 0;
position: fixed;
Expand All @@ -31,4 +26,5 @@
left: -9999em;
}
}

}

0 comments on commit 01af70e

Please sign in to comment.