Skip to content

Commit d332a90

Browse files
onetrust gdpr - cookie settings btn css (#1372)
* onetrust gdpr - cookie settings btn css & test script implementation * Fix CSS and switch to prod version. --------- Co-authored-by: Thiago Teixeira <[email protected]>
1 parent 47cda5c commit d332a90

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

styles/cookie-banner.scss

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
}
4848

4949
#onetrust-banner-sdk #onetrust-button-group {
50+
display: flex !important;
51+
flex-direction: column !important;
5052
margin-top: 0 !important;
5153
width: 100% !important;
5254
}
@@ -59,7 +61,8 @@
5961
}
6062

6163
#onetrust-consent-sdk #onetrust-accept-btn-handler,
62-
#onetrust-banner-sdk #onetrust-reject-all-handler {
64+
#onetrust-banner-sdk #onetrust-reject-all-handler,
65+
#onetrust-consent-sdk #onetrust-pc-btn-handler {
6366
padding-top: 0.5rem !important;
6467
padding-bottom: 0.5rem !important;
6568
border: 1px solid rgb(38, 39, 48) !important;
@@ -68,7 +71,18 @@
6871
line-height: 1.5rem !important;
6972
font-weight: 400 !important;
7073
width: 100% !important;
74+
margin: 0 0 0.5rem !important;
75+
}
76+
77+
#onetrust-consent-sdk #onetrust-pc-btn-handler {
78+
order: 1 !important;
7179
margin: 0 !important;
80+
border: 0 !important;
81+
background: transparent !important;
82+
}
83+
84+
#onetrust-consent-sdk #onetrust-pc-btn-handler:focus {
85+
outline: none !important;
7286
}
7387

7488
#onetrust-consent-sdk #onetrust-accept-btn-handler {
@@ -78,7 +92,6 @@
7892

7993
#onetrust-banner-sdk #onetrust-reject-all-handler {
8094
background-color: transparent !important;
81-
margin-bottom: 0.5rem !important;
8295
}
8396
@media (min-width: 640px) {
8497
#onetrust-banner-sdk {
@@ -103,16 +116,22 @@
103116

104117
#onetrust-banner-sdk #onetrust-button-group {
105118
display: flex !important;
119+
flex-direction: row !important;
106120
justify-content: flex-end !important;
107121
gap: 1rem !important;
108122
}
109123

110124
#onetrust-consent-sdk #onetrust-accept-btn-handler,
111-
#onetrust-banner-sdk #onetrust-reject-all-handler {
125+
#onetrust-banner-sdk #onetrust-reject-all-handler,
126+
#onetrust-consent-sdk #onetrust-pc-btn-handler {
112127
width: auto !important;
113128
min-width: 0 !important;
114129
margin: 0 !important;
115130
}
131+
132+
#onetrust-consent-sdk #onetrust-pc-btn-handler {
133+
order: 0 !important;
134+
}
116135
}
117136

118137
@media (min-width: 1280px) {
@@ -124,6 +143,7 @@
124143

125144
#onetrust-banner-sdk .ot-sdk-row {
126145
display: flex !important;
146+
flex-direction: column !important;
127147
align-items: flex-end !important;
128148
gap: 1rem !important;
129149
}

0 commit comments

Comments
 (0)