Skip to content

Commit 8a864e4

Browse files
Changed klaro cookies modal styles according to TUL requirements. (#288)
1 parent 29e2e9c commit 8a864e4

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

src/app/shared/cookies/klaro-configuration.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,18 @@ export const klaroConfiguration: any = {
2323
storageName: ANONYMOUS_STORAGE_NAME_KLARO,
2424

2525
privacyPolicy: '/info/privacy',
26-
2726
/*
2827
Setting 'hideLearnMore' to 'true' will hide the "learn more / customize" link in
2928
the consent notice. We strongly advise against using this under most
3029
circumstances, as it keeps the user from customizing their consent choices.
3130
*/
3231
hideLearnMore: false,
3332

33+
/*
34+
Override cookies modal styles according to customer TUL requirements.
35+
*/
36+
stylePrefix: 'klaro tul-cookies',
37+
3438
/*
3539
Setting 'acceptAll' to 'true' will show an "accept all" button in the notice and
3640
modal, which will enable all third-party services if the user clicks on it. If set

src/styles/_clarin-styles.scss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,32 @@
2020
.cursor-pointer {
2121
cursor: pointer;
2222
}
23+
24+
.tul-cookies {
25+
.cm-modal {
26+
background-color: #fff !important;
27+
box-shadow: 0 10px 15px 0 rgba(0,0,0,0.2), 10px 10px 10px 2px rgba(0,0,0,0.19) !important;
28+
border: 1px var(--bs-secondary) solid !important;
29+
border-radius: var(--border-radius, 10px) !important;
30+
}
31+
32+
.cm-header span, .cm-list-title {
33+
color: #343a40 !important;
34+
}
35+
36+
.slider.round.active {
37+
background-color: var(--lt-tul-purple) !important;
38+
}
39+
40+
.cm-caret a {
41+
color: var(--lt-tul-purple) !important;
42+
}
43+
44+
button.cm-btn {
45+
background-color: var(--lt-tul-purple) !important;
46+
}
47+
48+
button.cm-btn:hover {
49+
box-shadow: 0 0 0 0.2rem var(--lt-tul-purple) !important;
50+
}
51+
}

0 commit comments

Comments
 (0)