-
Notifications
You must be signed in to change notification settings - Fork 20
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 component #108
Conversation
Awesome! Yeah, there are a couple of components that don't render perfectly on the dummy page, looks spot-on in an actual page though. Only minor thing left is to add it to the table in the |
Could we try and follow the API conventions of the Nunjucks macro a bit more closely? Would make converting from prototypes to production code a bit easier. For example, using Would also be good to support the |
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.
Thanks for working on this!
@@ -0,0 +1,19 @@ | |||
<%= tag.div(class: classes, **html_attributes) do %> | |||
<div class="govuk-cookie-banner__message govuk-width-container"> |
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.
It'd be good to have a way to inject additional classes here...
Thanks for the review @frankieroberto, I've made the title and actions optional and allowed for a customisable For the time being I think we should stick with I'm not keen on the |
3f9ea71
to
5681ba0
Compare
I just force pushed without the commit that allows for no actions. I think at least one action is necessary to be able to dismiss the banner. In the case of essential non-tracking cookies only I think not showing the banner is a more sensible move. |
@peteryates thanks! With all these ports of |
For some reason the component doesn't look quite so beautiful in the dummy app as it does in the design system for reasons unknown. If anybody has some ideas about why, give me a shout.
Also not sure on PR etiquette in this repo, but I've tried to follow patterns properly.
Let me know any thoughts you have!
Changes in this PR
Screenshots