File tree 3 files changed +16
-34
lines changed
3 files changed +16
-34
lines changed Original file line number Diff line number Diff line change 2
2
3
3
dialog ,
4
4
[role = " dialog" ] {
5
- & :not ([class *= ' osano' ]) {
6
- background-color : ui-color (white );
7
- border : 0 ;
8
- border-radius : 0.4rem ;
9
- color : text-color (normal );
10
- display : block ;
11
- grid-template-rows : auto auto 1fr ;
12
- height : auto ;
13
- margin : 0 ;
14
- overflow : hidden ;
15
- padding : 0 ;
16
- position : relative ;
17
- width : max-content ;
18
- }
5
+ background-color : ui-color (white );
6
+ border : 0 ;
7
+ border-radius : 0.4rem ;
8
+ color : text-color (normal );
9
+ display : block ;
10
+ grid-template-rows : auto auto 1fr ;
11
+ height : auto ;
12
+ margin : 0 ;
13
+ overflow : hidden ;
14
+ padding : 0 ;
15
+ position : relative ;
16
+ width : max-content ;
19
17
20
18
& .footer-dialog {
21
19
align-self : flex-end ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ function Footer({
53
53
< a href = "/tos" > Terms of Use</ a >
54
54
< a href = "/license" > Licensing</ a >
55
55
< a href = "/privacy" > Privacy Notice</ a >
56
- < OsanoToggle />
56
+ < CookieYesToggle />
57
57
</ ListOfLinks >
58
58
</ div >
59
59
</ div >
@@ -127,27 +127,11 @@ function Footer({
127
127
) ;
128
128
}
129
129
130
- function OsanoToggle ( ) {
131
- const osano = typeof window === 'undefined' ? undefined : window . Osano ;
132
- const showOsanoDrawer = React . useCallback (
133
- ( e ) => {
134
- e . preventDefault ( ) ;
135
- osano . cm . showDrawer ( 'osano-cm-dom-info-dialog-open' ) ;
136
- } ,
137
- [ osano ]
138
- ) ;
139
-
140
- if ( osano === undefined || osano . cm . mode === 'debug' ) {
141
- document . body . classList . remove ( 'hide-osano' ) ;
142
- return null ;
143
- }
144
-
145
- document . body . classList . add ( 'hide-osano' ) ;
130
+ function CookieYesToggle ( ) {
146
131
return (
147
132
< button
148
133
type = 'button'
149
- className = "small"
150
- onClick = { showOsanoDrawer }
134
+ className = "cky-banner-element small"
151
135
>
152
136
Manage cookies
153
137
</ button >
Original file line number Diff line number Diff line change 11
11
display : flex ;
12
12
flex-direction : column ;
13
13
14
- & .hide-osano .osano-cm-widget {
14
+ .cky-btn-revisit-wrapper {
15
15
display : none ;
16
16
}
17
17
}
You can’t perform that action at this time.
0 commit comments