fix background condition in block classname js function

This commit is contained in:
2026-02-03 13:01:17 +00:00
parent d5edecc952
commit a6a1a9acb5

View File

@@ -29,7 +29,7 @@ export function sectionClassNames(attributes, defaultClasses = '', extraClasses
if('padding_bottom'in attributes && !attributes.padding_bottom) if('padding_bottom'in attributes && !attributes.padding_bottom)
classNames.push('section-zero-bottom'); classNames.push('section-zero-bottom');
if('background_colour' in attributes && attributes.background_colour) { if('background_hex' in attributes && attributes.background_hex) {
let bg = `bg-${ attributes.background_colour }`; let bg = `bg-${ attributes.background_colour }`;
if( if(