hmcts / design-system

One place for service teams to find styles, components and patterns for designing HMCTS government services.
https://hmcts-design-system.herokuapp.com
MIT License
7 stars 7 forks source link

Can’t use js-hidden class correctly due to govuk-frontend #16

Closed trevorsaint closed 5 years ago

trevorsaint commented 6 years ago

Due to a bug in govuk-frontend I can’t use js-hidden effectively.

I think they are missing:

.js-enabled .js-hidden

So, for now, I have created a utility class called 'app-js-hidden' and applied it like so:

.js-enabled .app-js-hidden {
   display: none;
}

When JS has been turned off, code snippets are being shown as expected.