Skip to content

Commit df7161b

Browse files
authored
Merge pull request #801 from IABTechLab/feature/footer-opt-out-icon
feat: ⚖️ Update footer cookie links
2 parents 27c2b39 + d3c92fe commit df7161b

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

docusaurus.config.js

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
22
// Note: type annotations allow type checking and IDEs autocompletion
33
import ConfigLocalized from "./docusaurus.config.localized.json";
4-
import { themes } from 'prism-react-renderer';
4+
import { themes } from "prism-react-renderer";
55

66
const lightCodeTheme = themes.github;
77
const darkCodeTheme = themes.dracula;
@@ -91,7 +91,7 @@ const config = {
9191
containerId: "GTM-K3NQMDX",
9292
},
9393
],
94-
require.resolve("docusaurus-plugin-image-zoom")
94+
require.resolve("docusaurus-plugin-image-zoom"),
9595
],
9696

9797
presets: [
@@ -286,8 +286,21 @@ const config = {
286286
href: "https://www.transparentadvertising.com/",
287287
},
288288
{
289-
label: "Do not sell my data",
290-
href: getLocalizedConfigValue("adsrvrURL"),
289+
html: `<a href="#" class="footer__link-item ot-sdk-show-settings">
290+
Website Cookies Settings
291+
</a>`,
292+
},
293+
{
294+
html: `<a class="truevault-polaris-optout footer__link-item"
295+
href="${getLocalizedConfigValue("adsrvrURL")}"
296+
target="_blank"
297+
rel="noreferrer noopener">
298+
<img src="https://polaris.truevaultcdn.com/static/assets/icons/optout-icon-black.svg"
299+
alt="California Consumer Privacy Act (CCPA) Opt-Out Icon"
300+
height="14px"
301+
style="vertical-align:middle" />
302+
Your Privacy Choices
303+
</a>`,
291304
},
292305
],
293306
},
@@ -310,16 +323,16 @@ const config = {
310323
// indexName: "UID2", //staging
311324
},
312325
zoom: {
313-
selector: '.markdown :not(em) > img',
326+
selector: ".markdown :not(em) > img",
314327
config: {
315328
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage
316329
background: {
317-
light: 'rgb(255, 255, 255)',
318-
dark: 'rgb(50, 50, 50)'
319-
}
320-
}
321-
}
330+
light: "rgb(255, 255, 255)",
331+
dark: "rgb(50, 50, 50)",
332+
},
333+
},
334+
},
322335
}),
323-
};
336+
};
324337

325338
export default config;

0 commit comments

Comments
 (0)