diff --git a/app/assets/stylesheets/sidebar_components.scss b/app/assets/stylesheets/sidebar_components.scss index b61b0b802..98300a98a 100644 --- a/app/assets/stylesheets/sidebar_components.scss +++ b/app/assets/stylesheets/sidebar_components.scss @@ -4,3 +4,11 @@ } border-top: 2px solid $govuk-brand-colour; } + +.sidebar-sticky { + position: -webkit-sticky; + position: sticky; + top: 0; + margin-top: -20px; +} + diff --git a/app/views/homepage/popular_links/show.html.erb b/app/views/homepage/popular_links/show.html.erb index 5dfbf6253..0dfd10d97 100644 --- a/app/views/homepage/popular_links/show.html.erb +++ b/app/views/homepage/popular_links/show.html.erb @@ -7,6 +7,6 @@ <%= render "homepage/popular_links/link", item:, index: %> <% end %> -