Skip to content

Commit

Permalink
Add .js-hidden class to published-dates component
Browse files Browse the repository at this point in the history
`gem-toggle` script in `govuk_publishing_components`  (https://github.com/alphagov/govuk_publishing_components/blob/master/app/assets/javascripts/govuk_publishing_components/lib/toggle.js) relies on a `js-hidden` class that was previously provided by `govuk_template`. We apply the properties at the component level to make sure the script still works as intended (revealing and hiding a list of previous publishing dates).
  • Loading branch information
alex-ju committed Oct 4, 2021
1 parent 2bec5a4 commit 2f883a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/components/_published-dates.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@
padding-top: govuk-spacing(2);
border-top: 1px solid $govuk-border-colour;
}

.js-enabled .app-c-published-dates .js-hidden {
display: none;
visibility: hidden;
}

0 comments on commit 2f883a4

Please sign in to comment.