Skip to content

Commit

Permalink
[Docs Site] Fix styling of OneTrust cookie button (#16122)
Browse files Browse the repository at this point in the history
  • Loading branch information
KianNH authored Aug 14, 2024
1 parent 1b6cd38 commit 09ec545
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
17 changes: 16 additions & 1 deletion src/components/OneTrust.astro
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,23 @@
<a
role="button"
id="ot-sdk-btn"
class="ot-sdk-show-settings !text-accent-600 !border-accent-600 hover:!bg-gray-800"
class="ot-sdk-show-settings"
>Cookie Settings</a
>
<!-- OneTrust Cookies Settings button end -->
</span>

<style>
#ot-sdk-btn.ot-sdk-show-settings {
border: none !important;
color: inherit !important;
font-size: inherit !important;
line-height: inherit !important;
padding: inherit !important;
font-family: var(--sl-font-family) !important;
}

#ot-sdk-btn.ot-sdk-show-settings:hover {
background-color: inherit !important;
}
</style>
11 changes: 8 additions & 3 deletions src/components/overrides/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ if (import.meta.env.CF_PAGES_BRANCH === "production" || import.meta.env.GITHUB_R
</a>
</li>
))}
{isProduction && <OneTrust />}
{isProduction && <OneTrust />}
</li>
</ul>
</div>
</>
Expand All @@ -111,12 +112,16 @@ if (import.meta.env.CF_PAGES_BRANCH === "production" || import.meta.env.GITHUB_R
{links.map(([text, href]) => (
<a
href={href}
class="mx-2 my-2 text-black dark:text-white decoration-accent-200"
class="mx-2 my-2 text-xs text-black dark:text-white decoration-accent-200"
>
<span>{text}</span>
</a>
))}
{isProduction && <OneTrust />}
{isProduction &&
<div class="mx-2 my-2 text-xs text-black dark:text-white underline decoration-accent-200">
<OneTrust />
</div>
}
</div>
</>
)
Expand Down

0 comments on commit 09ec545

Please sign in to comment.