Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix withFeaturedItem styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed May 12, 2023
1 parent fb1a9e9 commit 95ecdee
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions assets/js/blocks/featured-items/with-featured-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export const withFeaturedItem =
textColor,
} = attributes;

const classes = classnames(
const containerClass = classnames(
className,
{
'is-selected':
Expand All @@ -192,11 +192,8 @@ export const withFeaturedItem =
? `var(--wp--preset--color--${ textColor })`
: style?.color?.text,
boxSizing: 'border-box',
};

const wrapperStyle = {
...styleProps.style,
minHeight,
...styleProps.style,
};

const isImgElement = ! isRepeated && ! hasParallax;
Expand All @@ -222,14 +219,8 @@ export const withFeaturedItem =
showHandle={ isSelected }
style={ { minHeight } }
/>
<div
className={ classes }
style={ { containerStyle, ...styleProps.style } }
>
<div
className={ `${ className }__wrapper` }
style={ wrapperStyle }
>
<div className={ containerClass } style={ containerStyle }>
<div className={ `${ className }__wrapper` }>
<div
className="background-dim__overlay"
style={ overlayStyle }
Expand Down

0 comments on commit 95ecdee

Please sign in to comment.