mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
Default the cookie banner to be hidden
It should only be shown if JS is available and the cookieMessage JS finds consent has not been set.
This commit is contained in:
@@ -11,25 +11,11 @@
|
||||
@include govuk-responsive-padding(5, "bottom");
|
||||
}
|
||||
|
||||
.notify-cookie-banner__with-js {
|
||||
// component should only be shown if JS is available, by the cookieMessage JS, so hide by default
|
||||
.notify-cookie-banner {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.notify-cookie-banner__no-js {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.js-enabled {
|
||||
.notify-cookie-banner__no-js,
|
||||
.notify-cookie-banner {
|
||||
display: none; // shown with JS, always on for non-JS
|
||||
}
|
||||
|
||||
.notify-cookie-banner__with-js {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.notify-cookie-banner__buttons {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
Reference in New Issue
Block a user