Closed patrickpatrickpatrick closed 1 month ago
Name | Link |
---|---|
Latest commit | 04a7ba2db6bad12fc5adb8f88766ca872fb3a687 |
Latest deploy log | https://app.netlify.com/sites/govuk-design-system-preview/deploys/670907de3eddac0008fa1b51 |
Deploy Preview | https://deploy-preview-4205--govuk-design-system-preview.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Apologies for the push on this branch, that was meant for a separate PR for discussion 😬
What
Make components in
govuk-design-system
extendComponent
. This means we can:this.$module
to$this.$root
in a given componentComponent
in a given componentisSupported
function to check component support in a given componentIn addition, changes were needed to
EmbedCard
andNavigation
in light of changes to how components are now initialised.In this PR, we also add configuration for Typescript to look up
.ts
files, which allows us to be able to add a shorthand ambient module definition forgovuk-frontend
. This means Typescript/JSDoc will not throw any errors when callingthis.$root
in a class that extendsComponent
.Why
Component
is now available as ofv5.7.0
ofgovuk-frontend
. We also have made changes to initialisation to prevent multi-initialisation occurring which means usingbody
as a root module is now no longer supported.