docs: Add Announcement Banner Configuration#3532
Conversation
Fix missing newline at the end of migration-banner.js
There was a problem hiding this comment.
Code Review
This pull request replaces the hardcoded migration banner with a configurable announcement banner that includes a close button and session-based persistence. Feedback on these changes highlights a potential DOM-based XSS vulnerability in custom-layout.js due to the use of innerHTML with configuration values, suggesting a refactor to use safer DOM APIs like textContent. Additionally, it is recommended to add disableBanner = true to the Cloudflare configuration to preserve the previous behavior of keeping the banner disabled by default on Cloudflare Pages.
|
🚀 Cloudflare Preview Ready! 🔎 View Preview: https://pr-3532.toolbox-docs-6xc.pages.dev (Note: Subsequent pushes to this PR will automatically update the preview at this same URL) |
|
🧨 Preview deployments removed. Cloudflare Pages environments for |
This PR adds a general banner configuration with a sessionStorage to make the banner closable for a session for a user. Before merging, please alter the title, message, linkText and linkURL --------- Co-authored-by: Averi Kitsch <akitsch@google.com> 9d98bd6
This PR adds a general banner configuration with a sessionStorage to make the banner closable for a session for a user. Before merging, please alter the title, message, linkText and linkURL --------- Co-authored-by: Averi Kitsch <akitsch@google.com> 9d98bd6
This PR adds a general banner configuration with a sessionStorage to make the banner closable for a session for a user. Before merging, please alter the title, message, linkText and linkURL --------- Co-authored-by: Averi Kitsch <akitsch@google.com> 9d98bd6
This PR adds a general banner configuration with a sessionStorage to make the banner closable for a session for a user. Before merging, please alter the title, message, linkText and linkURL --------- Co-authored-by: Averi Kitsch <akitsch@google.com> 9d98bd6
This PR adds a general banner configuration with a sessionStorage to make the banner closable for a session for a user.
Before merging, please alter the title, message, linkText and linkURL