-
Notifications
You must be signed in to change notification settings - Fork 18
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
Components in scope for this gem #3
Comments
I agree, and: Perhaps if only accordions and tables are the "one-offs", they should still live under this gem, but can be implemented without I like the idea of minimising the number of "micro-dependencies" that each have their own Gem publishing pipeline etc. It would make it easier to keep everything in sync when |
On this point, there are several other patterns I've noticed on just about every project that uses the design system. For example, lots of projects implement their own Is there a place for the too? Perhaps in another gem if there turn out to be more than a handful. |
Also, there's a discussion on the ViewComponent issues about extending content areas to be more useful. It sounds like the push is to allow = render GovukComponent::Accordion.new do |accordion|
= accordion.with(:item, title: "The first tab") do
h1 First tab content
p lorem ipsum sit ....
= accordion.with(:item, title: "The second tab") do
h1 Secondtab content
p lorem ipsum sit ....
Clearly, it's not ready yet but worth considering when (if) the functionality lands |
I think Button should be part of this gem. If you look at design system implementation you can have a link styled as a button eg. Start now "button" which is really just a link. We might also want to style that "button" in various states. If you look at govuk-frontend nunjucks api (see macro), the developer can just pass in |
This is a first stab at a generic, simple table component. It can be generated with: * a multidimensional array, * an array of hashes or, * an array of objects. Headings must be provided and aren't inferred. It's not meant to cover all of the possible table functionality but will eventually be able to: * right align columns * make the first (or perhaps any) colum a header column * add captions Refs #3, #53
I'm closing this one now. The listed components are present and have been incrementally improved. |
For visibility, @peteryates, @tvararu and I had a discussion on the DfE Slack about the scope for this library.
The consensus (I think) is that this library lives along side other projects that enable developers to build applications using the GOV.UK Design System. For forms, there's govuk_design_system_formbuilder, which means that form elements are out of scope for this gem. We suspect that some GOV.UK Design System components like tables might be too complex to be built nicely using ViewComponent, and would benefit from a custom DSL.
This is a quick list of components and whether or not they're in scope. Feel free to edit & comment.
The text was updated successfully, but these errors were encountered: