diff --git a/projects/plugins/jetpack/changelog/fix-cookie-consent-block-color-fallback b/projects/plugins/jetpack/changelog/fix-cookie-consent-block-color-fallback new file mode 100644 index 0000000000000..89e061917d063 --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-cookie-consent-block-color-fallback @@ -0,0 +1,4 @@ +Significance: patch +Type: compat + +Cookie Consent Block: ensure we always have a default set of colors to style the block when theme colors are not available. diff --git a/projects/plugins/jetpack/extensions/blocks/cookie-consent/block.json b/projects/plugins/jetpack/extensions/blocks/cookie-consent/block.json index a14198fd9eb28..6553a6e2ee9db 100644 --- a/projects/plugins/jetpack/extensions/blocks/cookie-consent/block.json +++ b/projects/plugins/jetpack/extensions/blocks/cookie-consent/block.json @@ -38,9 +38,9 @@ "type": "object", "default": { "color": { - "text": "var(--wp--preset--color--contrast)", - "background": "var(--wp--preset--color--tertiary)", - "link": "var(--wp--preset--color--contrast)" + "text": "var(--wp--preset--color--contrast, #000000)", + "background": "var(--wp--preset--color--tertiary, #f0f0f0)", + "link": "var(--wp--preset--color--contrast, #000000)" }, "spacing": { "padding": { diff --git a/projects/plugins/jetpack/extensions/blocks/cookie-consent/test/fixtures/jetpack__cookie-consent.html b/projects/plugins/jetpack/extensions/blocks/cookie-consent/test/fixtures/jetpack__cookie-consent.html index 7157efb923474..c5ed189802d88 100644 --- a/projects/plugins/jetpack/extensions/blocks/cookie-consent/test/fixtures/jetpack__cookie-consent.html +++ b/projects/plugins/jetpack/extensions/blocks/cookie-consent/test/fixtures/jetpack__cookie-consent.html @@ -1,5 +1,5 @@ -