Improve the way macros are imported from GOV.UK Frontend
See original GitHub issueAt the minute all of the the component macros are included as part of the default layout:
We do this so that users do not need to import the components themselves – despite the examples in the Design System always including the import
, we tell them not to include it.
This means that:
- when we add a new component to GOV.UK Frontend, we have to remember to add it to the list of imports
- components are only imported into the default layout, and not the unbranded layout
- GOV.UK Frontend works differently to any other ‘extensions’ the user has installed
We should explore ways to auto-load the components in all of the provided layouts, possibly via the extensions framework.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Improve macros in GOV.UK Frontend #1386 - GitHub
Add an icon next to an input using the govuk Input macro Add an icon next ... Provide a way to import all...
Read more >Import CSS, assets and JavaScript - GOV.UK Frontend
Import specific parts of the CSS. If you want to improve how quickly your service's pages load in browsers, you can import only...
Read more >How GDS improved GOV.UK Frontend's developer ...
UK Design System team at Government Digital Service (GDS) on improving documentation for developers using GOV.UK Frontend. GOV.
Read more >govuk-frontend-wtf - PyPI
This repository contains a set of WTForms widgets used to render WTForm fields using GOV.UK Frontend component styling. This is done using Jinja...
Read more >Building a resilient frontend using progressive enhancement
Progressive enhancement is a way of building websites and applications. ... improve accessibility by encouraging best practices like writing ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A side advantage of a separate
include
is that that file could live outside ofapp
so more easily be updated. Keeping layout for user-side changes.components are now all imported automatically via the GOV.UK Frontend Prototype Kit config file