headstartwp
headstartwp copied to clipboard
Added a pre-packaged cookie dialog component
Description of the Change
Added a pre-packaged cookie acceptance dialog component, see #419.
@nicholasio We'll probably need to move this or replicate it across the other workspaces, but before I do that, wanted to see if this was what you were thinking for the pre-packaged cookie dialog.
Closes #419
How to test the Change
- Add the
CookieDialog
component on a page - Visit the page and click either the accept or deny buttons
- Check dev tools for the cookies that have been set
- Reload the page to ensure the dialog doesn't reappear
- Delete the
cookie-dialog-reviewed
cookie & reload the page to confirm the dialog reappears
Changelog Entry
Added - Pre-packaged cookie dialog component
Credits
Props @bmarshall511
Checklist:
- [x] I agree to follow this project's [Code of Conduct]