Skip to content

Commit

Permalink
fix boxshadow render
Browse files Browse the repository at this point in the history
  • Loading branch information
kadencewp committed Sep 3, 2024
1 parent 35e1c7f commit c78975d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/packages/helpers/src/css/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ export default class KadenceBlocksCSS {
'px ' +
(!this.empty(value['spread']) ? value['spread'] : '0') +
'px ' +
(!this.empty(value['color']) ? this.render_color(value['color']) : 'rgba(0,0,0,0.0)');
(!this.empty(value['color']) ? this.render_color(value['color'], ( value?.['opacity'] ? value?.['opacity'] : null )) : 'rgba(0,0,0,0.0)');
} else {
shadowString =
(!this.empty(value['hOffset']) ? value['hOffset'] : '0') +
Expand All @@ -776,7 +776,7 @@ export default class KadenceBlocksCSS {
'px ' +
(!this.empty(value['spread']) ? value['spread'] : '0') +
'px ' +
(!this.empty(value['color']) ? this.render_color(value['color']) : 'rgba(0,0,0,0.0)');
(!this.empty(value['color']) ? this.render_color(value['color'], ( value?.['opacity'] ? value?.['opacity'] : null )) : 'rgba(0,0,0,0.0)');
}

return shadowString;
Expand Down

0 comments on commit c78975d

Please sign in to comment.