-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cookie banner extends ConfigurableComponent
#4305
base: main
Are you sure you want to change the base?
Conversation
7457fd6
to
3ad1357
Compare
✅ You can preview this change here:
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it's all working as intended and we'll be able to merge it once 5.8.0 is released with the new component 🥳
/** | ||
* Check support of CookieBanner | ||
*/ | ||
static checkSupport() { | ||
Component.checkSupport() | ||
ConfigurableComponent.checkSupport() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion I think super
should work here to avoid further updates 😁
ConfigurableComponent.checkSupport() | |
super.checkSupport() |
Make the cookie banner extends `ConfigurableComponent` which is now exported from the latest version of `govuk-frontend`. Remove redundant code and update references to the config. Use the `defaults` functionality of `ConfigurableComponent` and provide a `schema`.
3ad1357
to
0ef3cf4
Compare
What
Make the cookie banner extends
ConfigurableComponent
which is now exported from the latest version ofgovuk-frontend
. Remove redundant code and update references to the config. Use thedefaults
functionality ofConfigurableComponent
and provide aschema
.Why
Fixes #4275