Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace global
js-hidden
class with tabs panel modifier
`js-hidden` is a global class that is defined by GOV.UK Template (https://github.com/alphagov/govuk_template/blob/78cbc105b564d2f4a83bb257abb98322bb851a93/source/assets/stylesheets/_accessibility.scss#L17) This could mean that if users include GOV.UK Frontend into their project it could break the JavaScript fallback in their project, since the tabs' implementation of `js-hidden` does not check for the presense of the `js-enabled` class. To avoid this problem we avoid a global class name and instead create a modifier for the panel component which is being hidden.
- Loading branch information