From 439548c1762c2e485625142dbec40c0f590dbe3d Mon Sep 17 00:00:00 2001 From: Vanita Barrett Date: Mon, 1 Oct 2018 13:46:48 +0000 Subject: [PATCH] Hide toggle link when JS disabled (related nav) When JS is disabled, we want to expand all content normally hidden behind a toggle, and hide the toggle link. --- .../components/_related-navigation.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss b/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss index 622df913ec..2fe5cfc7d9 100644 --- a/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +++ b/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss @@ -34,6 +34,14 @@ @include media(tablet) { margin-top: 5px; } + + & [data-controls] { + display: none; + + .js-enabled & { + display: block; + } + } } .gem-c-related-navigation__section-link {