-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renames js-
css prefix to govuk-js-
#1444
Conversation
59ae008
to
2fd9824
Compare
2fd9824
to
fb3da0f
Compare
does this change extend to the template? https://github.com/alphagov/govuk-frontend/blob/master/src/template.njk#L31 |
Hi @kr8n3r, No it doesn't, the team decided that As you pointed out with this line of code, if JavaScript fails or is disabled then 'js-enabled' would not be added to the |
One big reason to avoid changing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CHANGELOG works, I think could have some style improvements but we can do that with Mark later
3c8f32a
to
8608c21
Compare
Currently two components(character count & header) have `js-` interaction hooks. Unfortunately we have found somes instances where other 3rd party js or legacy js (govuk-elements etc) had some unexpected behaviour with the components and in some cases raised js errors. We decided as a team that we should instead namespace (using `govuk-js`) these hooks so that we have confidence in the initialising and interacting on a page with other scripts.
8608c21
to
a9c8251
Compare
Again, this is due to the namespacing changes[0] made in V3 of the GOV.UK Design System [0] alphagov/govuk-frontend#1444
Again, this is due to the namespacing changes[0] made in V3 of the GOV.UK Design System [0] alphagov/govuk-frontend#1444
Currently two components(character count & header) have
js-
interactionhooks. Unfortunately we have found somes instances where other 3rd party js or
legacy js (govuk-elements etc) had some unexpected behaviour with
the components and in some cases raised js errors.
We decided as a team that we should instead namespace (using
govuk-js
)these hooks so that we have confidence in the initialising and interaction of the components on a page with other scripts.
fixes #1270