@gem-sdk/components 2.4.16 → 2.5.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.
@@ -66,16 +66,20 @@ const Sticky = ({ children, builderAttrs, setting, style, builderProps, advanced
66
66
  style="${{
67
67
  margin: '0 auto',
68
68
  ...style,
69
- ...core.makeStyleResponsive('w', w),
70
- ...core.getStyleBackgroundByDevice(background),
71
- ...displayStyle(),
72
69
  ...getCSSAlign(),
70
+ ...displayStyle(),
71
+ ...core.makeStyleResponsive('w', w),
73
72
  'z-index': _const.ELEMENT_Z_INDEX.STICKY
74
73
  }}"
75
74
  >
76
- <div ${{
75
+ <div
76
+ ${{
77
77
  ...builderAttrs
78
- }}>
78
+ }}
79
+ style="${{
80
+ ...core.getStyleBackgroundByDevice(background)
81
+ }}"
82
+ >
79
83
  ${children}
80
84
  </div>
81
85
  </gp-sticky>
@@ -62,16 +62,20 @@ const Sticky = ({ children, builderAttrs, setting, style, builderProps, advanced
62
62
  style="${{
63
63
  margin: '0 auto',
64
64
  ...style,
65
- ...makeStyleResponsive('w', w),
66
- ...getStyleBackgroundByDevice(background),
67
- ...displayStyle(),
68
65
  ...getCSSAlign(),
66
+ ...displayStyle(),
67
+ ...makeStyleResponsive('w', w),
69
68
  'z-index': ELEMENT_Z_INDEX.STICKY
70
69
  }}"
71
70
  >
72
- <div ${{
71
+ <div
72
+ ${{
73
73
  ...builderAttrs
74
- }}>
74
+ }}
75
+ style="${{
76
+ ...getStyleBackgroundByDevice(background)
77
+ }}"
78
+ >
75
79
  ${children}
76
80
  </div>
77
81
  </gp-sticky>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.4.16",
3
+ "version": "2.5.0",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",