Describe the bug
Adding removeDefaultStyles to ResponsiveGrid does not remove styles.
Ref: https://github.com/adobe/aem-react-editable-components/blob/master/src/components/ResponsiveGrid.tsx#L45
if (isInEditor || !props.removeDefaultStyles) {
className = `${className} ${props.gridClassNames || ''} ${ClassNames.CONTAINER}`;
}
The code here shows that isInEditor will always return true and it seems impossible to override gridClassNames prop.
We want to use a custom grid but this is forcing our hand.
Package version
2.1.1
To Reproduce
- Add removeDefaultStyles to ResponsiveGrid
Expected behavior
Grid styles removed in AEM
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug
Adding removeDefaultStyles to ResponsiveGrid does not remove styles.
Ref: https://github.com/adobe/aem-react-editable-components/blob/master/src/components/ResponsiveGrid.tsx#L45
The code here shows that
isInEditorwill always return true and it seems impossible to override gridClassNames prop.We want to use a custom grid but this is forcing our hand.
Package version
2.1.1
To Reproduce
Expected behavior
Grid styles removed in AEM
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.