adobe / aem-react-core-wcm-components-base

Apache License 2.0
18 stars 10 forks source link

TeaserV1.tsx: cssClass not properly constructed #4

Open timoleenen opened 3 years ago

timoleenen commented 3 years ago

When props.isInEditor equals to true, baseCssClass is not properly set:

https://github.com/adobe/aem-react-core-wcm-components-base/blob/bec40fd2ec0c413a37797e3a02835a349b41c79b/src/authoring/teaser/v1/TeaserV1.tsx#L88

Proposing to use:

const cssClass = (props.isInEditor) ? props.baseCssClass + ' cq-dd-image' : props.baseCssClass;