@contentful/experiences-core 1.17.1-dev-20241003T1341-e0d12f6.0 → 1.17.2-dev-20241004T1347-4b9346f.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 +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -385,6 +385,7 @@ const buildStyleTag = ({ styles, nodeId }) => {
|
|
|
385
385
|
};
|
|
386
386
|
const buildCfStyles = ({ cfHorizontalAlignment, cfVerticalAlignment, cfFlexDirection, cfFlexWrap, cfMargin, cfPadding, cfBackgroundColor, cfWidth, cfHeight, cfMaxWidth, cfBorder, cfBorderRadius, cfGap, cfBackgroundImageUrl, cfBackgroundImageOptions, cfFontSize, cfFontWeight, cfImageOptions, cfLineHeight, cfLetterSpacing, cfTextColor, cfTextAlign, cfTextTransform, cfTextBold, cfTextItalic, cfTextUnderline, cfColumnSpan, cfVisibility, }) => {
|
|
387
387
|
return {
|
|
388
|
+
boxSizing: 'border-box',
|
|
388
389
|
...transformVisibility(cfVisibility),
|
|
389
390
|
margin: cfMargin,
|
|
390
391
|
padding: cfPadding,
|
|
@@ -402,14 +403,13 @@ const buildCfStyles = ({ cfHorizontalAlignment, cfVerticalAlignment, cfFlexDirec
|
|
|
402
403
|
...transformBackgroundImage(cfBackgroundImageUrl, cfBackgroundImageOptions),
|
|
403
404
|
fontSize: cfFontSize,
|
|
404
405
|
fontWeight: cfTextBold ? 'bold' : cfFontWeight,
|
|
405
|
-
fontStyle: cfTextItalic ? 'italic' :
|
|
406
|
+
fontStyle: cfTextItalic ? 'italic' : undefined,
|
|
407
|
+
textDecoration: cfTextUnderline ? 'underline' : undefined,
|
|
406
408
|
lineHeight: cfLineHeight,
|
|
407
409
|
letterSpacing: cfLetterSpacing,
|
|
408
410
|
color: cfTextColor,
|
|
409
411
|
textAlign: cfTextAlign,
|
|
410
412
|
textTransform: cfTextTransform,
|
|
411
|
-
textDecoration: cfTextUnderline ? 'underline' : 'none',
|
|
412
|
-
boxSizing: 'border-box',
|
|
413
413
|
objectFit: cfImageOptions?.objectFit,
|
|
414
414
|
objectPosition: cfImageOptions?.objectPosition,
|
|
415
415
|
};
|