-
Notifications
You must be signed in to change notification settings - Fork 20
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
This depends on deprecated govuk_frontend_toolkit #500
Comments
My take would be to try and remove |
Cool thanks @alex-ju 👍 sounds good about the css. Yeah with regards to jQuery be good to know the thoughts and if we do keep it what means should it be bundled. Are you ok to have a ponder about the initialisation of modules without govuk_frontend_toolkit? |
@kevindew yes, I'll think about it and come back with a proposal. |
Can this be closed now? |
I think we might still be using the modules JS from the toolkit, is that correct? https://github.com/alphagov/govuk_publishing_components/blob/master/app/assets/javascripts/govuk_publishing_components/dependencies.js#L6 |
@NickColley we still have some JS bits to remove/migrate and then we can close this. I will offer drinks when that happens. |
We hit some issues using this gem working with content-publisher: alphagov/content-publisher#217 in a javascript context which highlighted some of the problems with the remaining dependency on govuk_frontend_toolkit.
A problem we have for any apps is that nearly all the modules in https://github.com/alphagov/govuk_publishing_components/tree/master/app/assets/javascripts/govuk_publishing_components need to use govuk_frontend_toolkit to initialise their modules. This presents a problem for developers trying to migrate away from jQuery as govuk_frontend_toolkit requires jQuery.
A solution to this would be to change the initialisation method for our components to use a different approach - as the current one we have is only a very thin layer. We'd have to decide whether we want to continue with a self initialisation approach or to take the approach from govuk-frontend to have them be initialised separately.
We also seem to use govuk_frontend_toolkit for various CSS files. I'm not sure if that's now covered by govuk-frontend, @alex-ju ?
So actions to resolve this would be:
I'm not sure if I'm missing any others
/cc @alex-ju
The text was updated successfully, but these errors were encountered: