mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-27 04:31:11 -04:00
Bring in Jinja and Sass for radios component
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -71,6 +71,7 @@ const copy = {
|
||||
'hint',
|
||||
'label',
|
||||
'checkboxes',
|
||||
'radios',
|
||||
'input'
|
||||
];
|
||||
let done = 0;
|
||||
|
||||
Reference in New Issue
Block a user