headstartwp icon indicating copy to clipboard operation
headstartwp copied to clipboard

Added a pre-packaged cookie dialog component

Open bmarshall511 opened this issue 1 year ago • 4 comments

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

  1. Add the CookieDialog component on a page
  2. Visit the page and click either the accept or deny buttons
  3. Check dev tools for the cookies that have been set
  4. Reload the page to ensure the dialog doesn't reappear
  5. 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]

bmarshall511 avatar Jun 16 '23 20:06 bmarshall511