File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ export default function decorate(block) {
1717 const ueTextColorAttr = columnsChild ?. getAttribute ( 'data-text-color' ) ;
1818 console . log ( 'textColorAttr in columns row UE' , ueTextColorAttr ) ;
1919
20- if ( ueBkgdColorAttr && ueBkgdColorAttr != null ) block . style . backgroundColor = ueBkgdColorAttr ;
21- if ( ueTextColorAttr && ueTextColorAttr != null ) block . style . color = ueTextColorAttr ;
20+ if ( ueBkgdColorAttr && ueBkgdColorAttr != null && block . style . backgroundColor && block . style . backgroundColor !== '' ) block . style . backgroundColor = ueBkgdColorAttr ;
21+ if ( ueTextColorAttr && ueTextColorAttr != null && block . style . color && block . style . color !== '' ) block . style . color = ueTextColorAttr ;
2222
2323 const cols = [ ...block . firstElementChild . children ] ;
2424 block . classList . add ( `columns-${ cols . length } -cols` ) ;
You can’t perform that action at this time.
0 commit comments