diff options
| author | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-06-17 15:26:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-17 15:26:06 -0400 |
| commit | 133de3b86faf07d70a8a915dd2a95d9a9906057f (patch) | |
| tree | dd4470a0a716153f1dfed1005bd394eea6e41298 /docs/_static/images/Wan_load_balancing_exclude1.webp | |
| parent | e535682b8136a52f7dc66ec7af5a41c181bd8976 (diff) | |
| download | vyos-documentation-1.4.tar.gz vyos-documentation-1.4.zip | |
Fix Cookiebot consent dialog rendering unstyled and breaking the page (#2108) (#2110)1.4
On a fresh (no-consent) load the consent banner could render completely
unstyled and expand to full page height. Cookiebot delivers its dialog CSS as
a constructed stylesheet on document.adoptedStyleSheets; ReadTheDocs'
readthedocs-addons.js reassigns that whole-array property with a destructive
replace, and when that lands after Cookiebot's network-gated adoption it drops
Cookiebot's sheet, leaving #CybotCookiebotDialog at position:static expanded to
~6700px. It is a race, so it is intermittent and clears once consent is given
(the dialog then never renders).
- layout.html: a small adoptedStyleSheets shim, installed before any page
script, that preserves Cookiebot's sheet so another library cannot drop it.
- custom.css: a leak-safe safety net that keeps the dialog contained even if
its adopted sheet is ever absent. It uses only properties Cookiebot itself
sets, so it has verifiably no effect on the normal, styled banner.
🤖 Generated by [robots](https://vyos.io)
(cherry picked from commit dce7bb521e3947af59fe18895b609ec353e0450e)
Co-authored-by: Yuriy Andamasov <yuriy@vyos.io>
Diffstat (limited to 'docs/_static/images/Wan_load_balancing_exclude1.webp')
0 files changed, 0 insertions, 0 deletions
