Skip to content

Commit 09ec545

Browse files
authored
[Docs Site] Fix styling of OneTrust cookie button (#16122)
1 parent 1b6cd38 commit 09ec545

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

src/components/OneTrust.astro

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,23 @@
3434
<a
3535
role="button"
3636
id="ot-sdk-btn"
37-
class="ot-sdk-show-settings !text-accent-600 !border-accent-600 hover:!bg-gray-800"
37+
class="ot-sdk-show-settings"
3838
>Cookie Settings</a
3939
>
4040
<!-- OneTrust Cookies Settings button end -->
4141
</span>
42+
43+
<style>
44+
#ot-sdk-btn.ot-sdk-show-settings {
45+
border: none !important;
46+
color: inherit !important;
47+
font-size: inherit !important;
48+
line-height: inherit !important;
49+
padding: inherit !important;
50+
font-family: var(--sl-font-family) !important;
51+
}
52+
53+
#ot-sdk-btn.ot-sdk-show-settings:hover {
54+
background-color: inherit !important;
55+
}
56+
</style>

src/components/overrides/Footer.astro

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ if (import.meta.env.CF_PAGES_BRANCH === "production" || import.meta.env.GITHUB_R
100100
</a>
101101
</li>
102102
))}
103-
{isProduction && <OneTrust />}
103+
{isProduction && <OneTrust />}
104+
</li>
104105
</ul>
105106
</div>
106107
</>
@@ -111,12 +112,16 @@ if (import.meta.env.CF_PAGES_BRANCH === "production" || import.meta.env.GITHUB_R
111112
{links.map(([text, href]) => (
112113
<a
113114
href={href}
114-
class="mx-2 my-2 text-black dark:text-white decoration-accent-200"
115+
class="mx-2 my-2 text-xs text-black dark:text-white decoration-accent-200"
115116
>
116117
<span>{text}</span>
117118
</a>
118119
))}
119-
{isProduction && <OneTrust />}
120+
{isProduction &&
121+
<div class="mx-2 my-2 text-xs text-black dark:text-white underline decoration-accent-200">
122+
<OneTrust />
123+
</div>
124+
}
120125
</div>
121126
</>
122127
)

0 commit comments

Comments
 (0)