Replies: 1 comment
-
I think it's fair to remove the HMCTS components and move them to another gem. I think it makes sense to be explicit that these are HMCTS components and name that gem accordingly. Then downstream users can include them only when needed. The accessible autocomplete gem is maintained separately from the design system and I think a similar approach could be used for that. We could consider naming the helpers uniquely so that usage is explict rather than overriding the original implementation. I suspect bundling the Javascript may be difficult due to the differing asset pipeline options out there and the fact the Node package is separate to the Ruby gem dependencies. I think including instructions in in the |
Beta Was this translation helpful? Give feedback.
-
As part of the team's community readiness work we are seeking to make the gem compliant with the GDS contribution criteria. This means being feature complete and generating the same HTML output as
govuk-frontend
.However, our gem also provides some enhancements and extra features which are not found within the Design System. For example, we include some HMCTS Components, and an Accessible Autocomplete enhancement to
govukSelect
.The upstream HMCTS Frontend project has been archived and we will likely remove these components in a future release. However, the Accessible Autocomplete we have added is in use by a number of government services.
Having the autocomplete as part of this project is problematic: It means the gem can generate HTML which is not part of the expected GDS output, and, that functionality relies on JavaScript which is not bundled with the project. Host applications are expected to include this JavaScript to use this feature, but it is never mentioned anywhere in our README and was never extracted from the original service.
Additionally, contributors to the project occasionally propose enhancements to the GDS components which may be useful within their services or within the context of a Rails application but which do not form part of the Design System or
govuk-frontend
. We cannot merge these without impacting the tenets of the GDS criteria.Please discuss approaches we can take clean up
govuk-design-system-rails
.Suggestions:
govuk-design-system-rails-extensions
gem and move the autocomplete functionality theregovuk-frontend
/to the GDS team, and otherwise, to propose it ingovuk-design-system-rails-extensions
-extensions
gemBeta Was this translation helpful? Give feedback.
All reactions