Removing govuk js

This commit is contained in:
alexjanousekGSA
2025-08-06 17:19:15 -04:00
parent 9d7b2b9076
commit 3a230f15b6
19 changed files with 78 additions and 114 deletions

View File

@@ -1,6 +1,8 @@
(function (window) {
"use strict";
window.NotifyModules = window.NotifyModules || {};
/*
This module is intended to be used to show and hide an error banner based on a javascript trigger. You should make
sure the banner has an appropriate aria-live attribute, and a tabindex of -1 so that screenreaders and keyboard users
@@ -8,7 +10,7 @@
This may behave in unexpected ways if you have more than one element with the `banner-dangerous` class on your page.
*/
window.GOVUK.ErrorBanner = {
window.NotifyModules.ErrorBanner = {
hideBanner: () => $('.banner-dangerous').addClass('display-none'),
showBanner: () => $('.banner-dangerous')
.removeClass('display-none')