Skip to content

Commit 417478d

Browse files
committed
alignment + remove testing
1 parent 86e4ad5 commit 417478d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/components/OneTrust.astro

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
---
22
import { Image } from "astro:assets";
33
import PrivacyChoicesImage from "~/assets/privacyoptions.svg";
4+
45
const isProduction = import.meta.env.PROD;
56
67
const uuid = isProduction
78
? "b1e05d49-f072-4bae-9116-bdb78af15448"
8-
: "b1e05d49-f072-4bae-9116-bdb78af15448";
9+
: "b1e05d49-f072-4bae-9116-bdb78af15448-test";
910
---
1011

1112
<script
1213
src="https://ot.www.cloudflare.com/public/vendor/onetrust/scripttemplates/otSDKStub.js"
1314
type="text/javascript"
1415
charset="UTF-8"
15-
data-domain-script="b1e05d49-f072-4bae-9116-bdb78af15448"
16+
data-domain-script={uuid}
1617
is:inline></script>
1718
<script type="text/javascript" is:inline>
1819
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1920
function OptanonWrapper() {}
2021
</script>
2122
<!-- OneTrust Cookies Settings button start -->
22-
<Image src={PrivacyChoicesImage} alt="privacy options" />
23-
<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>
2427
<!-- OneTrust Cookies Settings button end -->
2528

2629
<style>

src/components/overrides/Footer.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ if (
130130
))
131131
}
132132
{
133-
(
133+
isProduction && (
134134
<li>
135135
<OneTrust />
136136
</li>

0 commit comments

Comments
 (0)