@micromag/element-background 0.2.311 → 0.2.320

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/es/index.js CHANGED
@@ -80,6 +80,8 @@ var Background = function Background(_ref) {
80
80
 
81
81
  if (fit !== null) {
82
82
  finalStyle.backgroundSize = fit;
83
+ } else if (!repeat) {
84
+ finalStyle.backgroundSize = 'cover';
83
85
  }
84
86
  } // video
85
87
 
package/lib/index.js CHANGED
@@ -91,6 +91,8 @@ var Background = function Background(_ref) {
91
91
 
92
92
  if (fit !== null) {
93
93
  finalStyle.backgroundSize = fit;
94
+ } else if (!repeat) {
95
+ finalStyle.backgroundSize = 'cover';
94
96
  }
95
97
  } // video
96
98
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-background",
3
- "version": "0.2.311",
3
+ "version": "0.2.320",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -48,8 +48,8 @@
48
48
  "dependencies": {
49
49
  "@babel/runtime": "^7.13.10",
50
50
  "@folklore/size": "^0.1.14",
51
- "@micromag/core": "^0.2.301",
52
- "@micromag/element-video": "^0.2.309",
51
+ "@micromag/core": "^0.2.320",
52
+ "@micromag/element-video": "^0.2.320",
53
53
  "classnames": "^2.2.6",
54
54
  "lodash": "^4.17.20",
55
55
  "prop-types": "^15.7.2",
@@ -59,5 +59,5 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "ecf55bc30e34c61332265c3a1f6cbd978868786b"
62
+ "gitHead": "e710981101344c5b9dabf805fae6258743337e51"
63
63
  }