Skip to content

Commit

Permalink
PLANET-7022 Apply new identity colors to Highlighted CTA pattern
Browse files Browse the repository at this point in the history
This is just about changing the color applied by default if the new identity styles are enabled
  • Loading branch information
mleray committed Apr 6, 2023
1 parent 4d96807 commit da2bd92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/src/block-templates/highlighted-cta/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import mainThemeUrl from '../main-theme-url';

const {__} = wp.i18n;

const isNewIdentity = window.p4ge_vars.planet4_options.new_identity_styles ?? false;

const template = ({
titlePlaceholder = __('Enter text', 'planet4-blocks-backend'),
}) => [
Expand All @@ -10,7 +12,7 @@ const template = ({
{
className: 'block',
textColor: 'white',
backgroundColor: 'dark-blue',
backgroundColor: isNewIdentity ? 'dark-green-800' : 'dark-blue',
},
[
['core/column', {}, [
Expand Down

0 comments on commit da2bd92

Please sign in to comment.