Skip to content

Commit

Permalink
fix (global colors): re-include color as fallback (#3331)
Browse files Browse the repository at this point in the history
fixes #3329

Co-authored-by: [email protected] <>
  • Loading branch information
bfintal committed Sep 27, 2024
1 parent 8a54d52 commit 63be543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/global-settings/colors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-colors', out
// Convert hex colors to global colors in Stackable blocks.
addFilter( 'stackable.color-palette-control.change', 'stackable/global-colors', ( value, colorObject ) => {
if ( colorObject && colorObject.slug.includes( 'stk-global-color' ) ) {
return `var(--${ colorObject.slug })`
return `var(--${ colorObject.slug }, ${ colorObject.color })`
}

return value
Expand Down

0 comments on commit 63be543

Please sign in to comment.