Skip to content

Commit d0840ce

Browse files
kodster28KianNH
authored andcommitted
[Chore] Update cookie preference icon (cloudflare#22683)
* [Chore] Update cookie preference icon * Testing * Updates * alignment + remove testing --------- Co-authored-by: Kian Newman-Hazel <[email protected]>
1 parent e732141 commit d0840ce

File tree

3 files changed

+43
-4
lines changed

3 files changed

+43
-4
lines changed

src/assets/privacyoptions.svg

Lines changed: 33 additions & 0 deletions
Loading

src/components/OneTrust.astro

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
import { Image } from "astro:assets";
3+
import PrivacyChoicesImage from "~/assets/privacyoptions.svg";
4+
25
const isProduction = import.meta.env.PROD;
36
47
const uuid = isProduction
@@ -17,7 +20,10 @@ const uuid = isProduction
1720
function OptanonWrapper() {}
1821
</script>
1922
<!-- OneTrust Cookies Settings button start -->
20-
<button id="ot-sdk-btn" class="ot-sdk-show-settings">Cookie Settings</button>
23+
<div class="inline-flex items-center gap-2">
24+
<Image src={PrivacyChoicesImage} alt="privacy options" height="12" />
25+
<button id="ot-sdk-btn" class="ot-sdk-show-settings">Cookie Settings</button>
26+
</div>
2127
<!-- OneTrust Cookies Settings button end -->
2228

2329
<style>

src/components/overrides/Footer.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if (
9090
}
9191
{!splash && <Default />}
9292
<div class="w-full">
93-
<div class="grid grid-cols-2 gap-8 pb-10 pt-6 lg:grid-cols-5">
93+
<div class="grid grid-cols-2 gap-8 pt-6 pb-10 lg:grid-cols-5">
9494
{
9595
groups.map(([title, items]) => (
9696
<ul class="flex w-full list-none flex-col gap-3 pl-0">
@@ -114,15 +114,15 @@ if (
114114
</div>
115115
<div>
116116
<ul
117-
class="flex list-inside flex-wrap items-center justify-center gap-3 gap-y-4 pl-0 text-xs text-cl1-gray-4! dark:text-cl1-gray-7!"
117+
class="text-cl1-gray-4! dark:text-cl1-gray-7! flex list-inside flex-wrap items-center justify-center gap-3 gap-y-4 pl-0 text-xs"
118118
>
119119
<li class="list-none">2025 Cloudflare, Inc.</li>
120120
{
121121
links.map(([text, href]) => (
122122
<li>
123123
<a
124124
href={href}
125-
class="text-cl1-gray-4! no-underline dark:text-cl1-gray-7!"
125+
class="text-cl1-gray-4! dark:text-cl1-gray-7! no-underline"
126126
>
127127
{text}
128128
</a>

0 commit comments

Comments
 (0)