@micromag/element-button 0.3.78 → 0.3.79
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 +5 -1
- package/lib/index.js +5 -1
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -86,11 +86,15 @@ var Button = function Button(_ref) {
|
|
|
86
86
|
borderStyle = _ref3$borderStyle === void 0 ? null : _ref3$borderStyle,
|
|
87
87
|
otherStyles = _objectWithoutProperties(_ref3, _excluded3);
|
|
88
88
|
|
|
89
|
+
var margin = borderWidth !== null && borderWidth > 0 ? '-1px' : null;
|
|
89
90
|
finalStyles = _objectSpread(_objectSpread({}, otherStyles), {}, {
|
|
90
91
|
borderRadius: borderRadius
|
|
91
|
-
}
|
|
92
|
+
}, margin !== null ? {
|
|
93
|
+
margin: margin
|
|
94
|
+
} : null);
|
|
92
95
|
borderStyles = {
|
|
93
96
|
borderRadius: borderRadius + borderWidth,
|
|
97
|
+
// backgroundColor: borderColor,
|
|
94
98
|
borderWidth: borderWidth,
|
|
95
99
|
borderColor: borderColor,
|
|
96
100
|
borderStyle: borderStyle,
|
package/lib/index.js
CHANGED
|
@@ -97,11 +97,15 @@ var Button = function Button(_ref) {
|
|
|
97
97
|
borderStyle = _ref3$borderStyle === void 0 ? null : _ref3$borderStyle,
|
|
98
98
|
otherStyles = _objectWithoutProperties__default["default"](_ref3, _excluded3);
|
|
99
99
|
|
|
100
|
+
var margin = borderWidth !== null && borderWidth > 0 ? '-1px' : null;
|
|
100
101
|
finalStyles = _objectSpread__default["default"](_objectSpread__default["default"]({}, otherStyles), {}, {
|
|
101
102
|
borderRadius: borderRadius
|
|
102
|
-
}
|
|
103
|
+
}, margin !== null ? {
|
|
104
|
+
margin: margin
|
|
105
|
+
} : null);
|
|
103
106
|
borderStyles = {
|
|
104
107
|
borderRadius: borderRadius + borderWidth,
|
|
108
|
+
// backgroundColor: borderColor,
|
|
105
109
|
borderWidth: borderWidth,
|
|
106
110
|
borderColor: borderColor,
|
|
107
111
|
borderStyle: borderStyle,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-button",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.79",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "b25bd1907137fd148b912a5a48c1bc9d2bd0dadd"
|
|
62
62
|
}
|