Skip to content

Commit

Permalink
Tiny PR: Fix cookie consent default content and CSS (#29251)
Browse files Browse the repository at this point in the history
  • Loading branch information
alshakero authored Mar 2, 2023
1 parent b8fd51f commit d3c6ba9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions projects/plugins/jetpack/changelog/fix-cookie-consent-block
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: bugfix

Pre-escape the ampersand in the default content of the cookie consent block
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
source: 'html',
selector: 'p',
default: __(
'Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: <a href=https://automattic.com/cookies/>Cookie Policy</a>.',
'Privacy &amp; Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: <a href="https://automattic.com/cookies/">Cookie Policy</a>.',
'jetpack'
),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
.wp-block-jetpack-cookie-consent {
position: fixed;
bottom: 50px;
transition: opacity 1s ease-in-out;
animation: cookie-consent-slide-in 0.5s ease-in-out;
z-index: 50001;
display: flex;
justify-content: space-between;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
@import './common';

.wp-block-jetpack-cookie-consent:not([role='document']) {
transition: opacity 0.2s ease-in-out;
animation: cookie-consent-slide-in 0.2s ease-in-out;

span {
display: none;
}
Expand Down

0 comments on commit d3c6ba9

Please sign in to comment.