Skip to content

Commit

Permalink
fix: listing bg colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagner3UB committed Jan 10, 2024
1 parent a424515 commit 4197f50
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ const ListingBody = React.memo(

if (!block?.show_block_bg && !isSearchBlockResults) return 'full-width';

let bg_color = data.bg_color ? `bg-${data.bg_color}` : 'bg-light';
let bg_color = config.blocks?.blocksConfig[
'listing'
]?.listing_bg_colors.some((color) => color.name === data.bg_color)
? `bg-${data.bg_color}`
: 'bg-light';

if (block.template === 'gridGalleryTemplate') {
return `section section-muted section-inset-shadow py-5 ${bg_color} ${
Expand Down

0 comments on commit 4197f50

Please sign in to comment.