mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 14:09:49 -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 Header from 'govuk-frontend/components/header/header';
|
||||||
import Details from 'govuk-frontend/components/details/details';
|
import Details from 'govuk-frontend/components/details/details';
|
||||||
import Button from 'govuk-frontend/components/button/button';
|
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
|
* TODO: Ideally this would be a NodeList.prototype.forEach polyfill
|
||||||
@@ -46,6 +47,11 @@ function initAll (options) {
|
|||||||
// Find first header module to enhance.
|
// Find first header module to enhance.
|
||||||
var $toggleButton = scope.querySelector('[data-module="header"]')
|
var $toggleButton = scope.querySelector('[data-module="header"]')
|
||||||
new Header($toggleButton).init()
|
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.
|
// Create separate namespace for GOVUK Frontend.
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ const copy = {
|
|||||||
'hint',
|
'hint',
|
||||||
'label',
|
'label',
|
||||||
'checkboxes',
|
'checkboxes',
|
||||||
|
'radios',
|
||||||
'input'
|
'input'
|
||||||
];
|
];
|
||||||
let done = 0;
|
let done = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user