Replies: 2 comments
-
I like the idea of simplifying the maintenance but I’m not sold on this being the right tradeoff. A fundamental problem with what you suggest is that
I don’t think that’s what happened. From what I can see:
Based on my points above – I assume this was also so we could avoid including the whole design system on our projects, and instead only reuse the form styles.
What is the compliance issue exactly? I’m not aware of GOV.UK projects mandating usage of GDS or a specific version of it. The solution to my concerns above would be to only load the relevant subset of
So at least based on this, I’d recommend we give further consideration to alternatives that simplify maintenance without throwing away the benefits of having our own package. For example it feels like rewriting class names to use |
Beta Was this translation helpful? Give feedback.
-
Closing this as the primary driver (to make maintenance easier) has been addressed in #80 Thanks for guiding me, @thibaudcolas 🙌 |
Beta Was this translation helpful? Give feedback.
-
When
tbxforms
was created, we copied all of the GOV.UK Design System ("GDS" here on out) styles and javascript from the govuk-frontend package and diligently renamed them fromgovuk-...
totbxforms-...
(e.g. govuk-clearfix became tbxforms-clearfix), as well as the odd minor tweak here and there.This was a huge task.
The intent was to give us more control over behaviour and customisations, allowing us to make changes to better support our projects without waiting for updates to the GDS. However, in the two years of
tbxforms
being alive, no changes have been made to our styling or behaviour - no customisations have been made beyond what GDS already supports.As a result, our styles and javascript are now significantly outdated and missing numerous fixes and improvements that have been made to the GDS over the past two years. This is primarily because porting the updates to
tbxforms
is arduous.As a result,
tbxforms
is no longer the best it can be for usability/accessibility and is no longer compliant when used on GOV.UK projects - a big issue.I propose we:
govuk-frontend
package and use the styles and javascript from theregovuk-
classesThis approach mirrors what crispy-forms-gds do.
The key advantages of doing this are:
tbxforms
would be significantly simpler and easier.govuk-frontend
can be installed/updated independently oftbxforms
(ifgovuk-frontend
is installed at the project-level instead oftbxforms
package level).govuk-frontend
, which is in active development.wagtail-kit
is simpler as the same variables can modify both the GDS and tbxforms.This would still permit us to customise everything we can currently via SCSS variables.
There would still be the need for a
tbxforms
Node package as we have added additional behaviour for conditional fields, though the size of this package would drastically reduce.Beta Was this translation helpful? Give feedback.
All reactions