Skip to content

Commit

Permalink
feat(con/tp): hide "reject" button in cookie banner + style accept btn
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbolikowski committed Jun 13, 2024
1 parent e05976d commit 0da8bbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion apps/redi-connect/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
<script src="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v3.0.0-rc.17/dist/cookieconsent.umd.js"></script>

<!-- Trigger CookieConsent popover and only enable HotJar and Google Analytics if approved-->
<style>
/* style the accept button */
#cc-main .cm__btn[data-role='all'] {
background-color: #58adc5;
}
</style>
<script async defer>
window.addEventListener('load', () => {
setupCookieConsent()
Expand Down Expand Up @@ -77,7 +83,6 @@
description:
'To create the best mentoring experience on ReDI Connect, we use cookies. These cookies are crucial for the smooth operation of our platform and provide insights into how you engage with mentoring content.<br /><br /><em>Your Choices Matter:</em><br /> Click "Accept all" to allow the use of all cookies. If you prefer a personalized approach, select "Cookie Preferences" to manage your preferences.',
acceptAllBtn: 'Accept all',
acceptNecessaryBtn: 'Reject all',
showPreferencesBtn: 'Manage Cookie Preferences',
},
preferencesModal: {
Expand Down
7 changes: 6 additions & 1 deletion apps/redi-talent-pool/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
<script src="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v3.0.0-rc.17/dist/cookieconsent.umd.js"></script>

<!-- Trigger CookieConsent popover and only enable HotJar and Google Analytics if approved-->
<style>
/* style the accept button */
#cc-main .cm__btn[data-role='all'] {
background-color: #58adc5;
}
</style>
<script async defer>
window.addEventListener('load', () => {
setupCookieConsent()
Expand Down Expand Up @@ -97,7 +103,6 @@
description:
'To create the best mentoring experience on ReDI Talent Pool, we use cookies. These cookies are crucial for the smooth operation of our platform and provide insights into how you engage with mentoring content.<br /><br /><em>Your Choices Matter:</em><br /> Click "Accept all" to allow the use of all cookies. If you prefer a personalized approach, select "Cookie Preferences" to manage your preferences.',
acceptAllBtn: 'Accept all',
acceptNecessaryBtn: 'Reject all',
showPreferencesBtn: 'Manage Cookie Preferences',
},
preferencesModal: {
Expand Down

0 comments on commit 0da8bbf

Please sign in to comment.