Skip to content

Commit

Permalink
fix: double bg removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagner3UB committed Jan 9, 2024
1 parent 1dbc958 commit a424515
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions src/config/italiaConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ import { schemaListing } from 'design-comuni-plone-theme/components/ItaliaTheme/

import reducers from 'design-comuni-plone-theme/reducers';

const ReleaseLog = loadable(
() => import('design-comuni-plone-theme/components/ReleaseLog/ReleaseLog'),
const ReleaseLog = loadable(() =>
import('design-comuni-plone-theme/components/ReleaseLog/ReleaseLog'),
);

const messages = defineMessages({
Expand Down Expand Up @@ -486,10 +486,9 @@ export default function applyConfig(voltoConfig) {
},
};
// Remove Horizontal Menu variation of TOC Block
config.blocks.blocksConfig.toc.variations =
config.blocks.blocksConfig.toc.variations.filter(
(v) => v.id !== 'horizontalMenu',
);
config.blocks.blocksConfig.toc.variations = config.blocks.blocksConfig.toc.variations.filter(
(v) => v.id !== 'horizontalMenu',
);

// COMPONENTS
config.components = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ const ListingBody = React.memo(

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

let bg_color = data.bg_color ? `bg-${data.bg_color}` : '';
let bg_color = data.bg_color ? `bg-${data.bg_color}` : 'bg-light';

if (block.template === 'gridGalleryTemplate') {
return `section section-muted section-inset-shadow py-5 ${bg_color} ${
isSearchBlockResults ? '' : 'full-width'
}`;
} else {
return `py-5 ${bg_color} ${
isSearchBlockResults ? 'template-wrapper' : 'bg-light full-width'
isSearchBlockResults ? 'template-wrapper' : 'full-width'
}`;
}
};
Expand Down

0 comments on commit a424515

Please sign in to comment.