Bring in Jinja and Sass for radios component

This commit is contained in:
Tom Byers
2020-03-11 13:24:27 +00:00
parent 5293e3e1eb
commit 48499f0c00
2 changed files with 7 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
import Header from 'govuk-frontend/components/header/header';
import Details from 'govuk-frontend/components/details/details';
import Button from 'govuk-frontend/components/button/button';
import Radios from 'govuk-frontend/components/radios/radios';
/**
* TODO: Ideally this would be a NodeList.prototype.forEach polyfill
@@ -46,6 +47,11 @@ function initAll (options) {
// Find first header module to enhance.
var $toggleButton = scope.querySelector('[data-module="header"]')
new Header($toggleButton).init()
var $radios = scope.querySelectorAll('[data-module="radios"]')
nodeListForEach($radios, function ($radio) {
new Radios($radio).init()
})
}
// Create separate namespace for GOVUK Frontend.

View File

@@ -71,6 +71,7 @@ const copy = {
'hint',
'label',
'checkboxes',
'radios',
'input'
];
let done = 0;