@widergy/energy-ui 1.115.2 → 1.115.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.115.3](https://github.com/widergy/energy-ui/compare/v1.115.2...v1.115.3) (2022-03-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * legend ([#273](https://github.com/widergy/energy-ui/issues/273)) ([15abec0](https://github.com/widergy/energy-ui/commit/15abec02ee57973b70f234770ae98dac6e98f2b6))
7
+
1
8
  ## [1.115.2](https://github.com/widergy/energy-ui/compare/v1.115.1...v1.115.2) (2022-03-18)
2
9
 
3
10
 
@@ -323,7 +323,7 @@ var UTBarChart = function UTBarChart(_ref) {
323
323
  classes: classes,
324
324
  displayAs: displayLegendAs,
325
325
  style: {
326
- width: containerWidth - 2 * GRAPH_X_START,
326
+ width: fitLegend ? containerWidth - 2 * GRAPH_X_START : containerWidth,
327
327
  margin: fitLegend ? "0 ".concat(GRAPH_X_START, "px 0 ").concat(GRAPH_X_START, "px") : '0 auto'
328
328
  },
329
329
  flatData: {
@@ -39,7 +39,7 @@ var retrieveStyle = function retrieveStyle(theme) {
39
39
  },
40
40
  showLegendIcon: {
41
41
  color: (0, _seamlessImmutable.getIn)(theme, ['UTBarChart', 'showLegendIcon', 'color']),
42
- marginRight: 10
42
+ marginRight: (0, _seamlessImmutable.getIn)(theme, ['UTBarChart', 'showLegendIcon', 'marginRight'], 10)
43
43
  },
44
44
  showLegendLabel: {
45
45
  fontSize: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTBarChart', 'showLegendLabel', 'fontSize']), " !important"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "1.115.2",
3
+ "version": "1.115.3",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",