From bd07d5b06f2e9c5efcc9544f05c9a78cb64226df Mon Sep 17 00:00:00 2001 From: Aaron Lee Date: Fri, 26 Jun 2026 16:32:47 -0400 Subject: [PATCH] fix(docs-site): use site's external-link icon in cookie banner Replace the cookie consent plugin's inline box-and-arrow SVG with the diagonal-arrow glyph we use elsewhere (navbar GitHub link, footer external links). Hides the plugin's SVG and renders the icon via an `::after` mask-image on the description's external links. Co-Authored-By: Claude Opus 4.7 (1M context) --- docs-site/src/css/custom.css | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs-site/src/css/custom.css b/docs-site/src/css/custom.css index a2084822d..78c6233b1 100644 --- a/docs-site/src/css/custom.css +++ b/docs-site/src/css/custom.css @@ -940,6 +940,34 @@ body:has(.cookie-consent-toast.cookie-consent-modal) { color: var(--ifm-link-hover-color); } +/* Swap the plugin's inline external-link SVG for the site's diagonal-arrow + icon used elsewhere (navbar GitHub link, footer external links). */ +.cookie-consent-toast .cookie-consent-description a .cookie-consent-external-link-icon { + display: none; +} + +.cookie-consent-toast .cookie-consent-description a[href*='://']::after { + content: ''; + display: inline-block; + width: 11px; + height: 11px; + margin-left: 3px; + background-color: currentColor; + opacity: 0.6; + vertical-align: -1px; + -webkit-mask-image: url("data:image/svg+xml;utf-8,"); + mask-image: url("data:image/svg+xml;utf-8,"); + -webkit-mask-size: contain; + mask-size: contain; + -webkit-mask-repeat: no-repeat; + mask-repeat: no-repeat; + transition: opacity 0.15s ease; +} + +.cookie-consent-toast .cookie-consent-description a[href*='://']:hover::after { + opacity: 1; +} + .cookie-consent-toast .cookie-consent-buttons { display: flex; flex-direction: row;