@contentful/experiences-core 1.40.3-dev-20250611T0948-7389339.0 → 1.41.0-dev-20250611T1249-85aabd5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1976,7 +1976,6 @@ const buildStyleTag = ({ styles, nodeId }) => {
|
|
|
1976
1976
|
*/
|
|
1977
1977
|
const buildCfStyles = (values) => {
|
|
1978
1978
|
const cssProperties = {
|
|
1979
|
-
boxSizing: 'border-box',
|
|
1980
1979
|
margin: values.cfMargin,
|
|
1981
1980
|
padding: values.cfPadding,
|
|
1982
1981
|
backgroundColor: values.cfBackgroundColor,
|
|
@@ -2283,6 +2282,10 @@ const detachExperienceStyles = (experience) => {
|
|
|
2283
2282
|
* }
|
|
2284
2283
|
*/
|
|
2285
2284
|
const generatedCss = stringifyCssProperties(cfStyles);
|
|
2285
|
+
if (!generatedCss && !isAnyVisibilityValueHidden) {
|
|
2286
|
+
// If there are no styles to apply, skip this breakpoint completely including the class name
|
|
2287
|
+
continue;
|
|
2288
|
+
}
|
|
2286
2289
|
/* [Data format] `generatedCss` is the minimized CSS string that will be added to the DOM:
|
|
2287
2290
|
* generatedCss = "margin: 1px;width: 100%;..."
|
|
2288
2291
|
*/
|