@eui/core 10.5.3 → 10.5.4-snapshot-1637106791179

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.
@@ -1433,6 +1433,7 @@
1433
1433
  isSidebarActive: false,
1434
1434
  isSidebarInnerActive: false,
1435
1435
  isSidebarStateCloseWithIcons: false,
1436
+ isSidebarExpandOnHover: true,
1436
1437
  hasSidebar: false,
1437
1438
  hasHeader: false,
1438
1439
  hasHeaderLogo: false,
@@ -1568,7 +1569,9 @@
1568
1569
  return this.state.isSidebarHover;
1569
1570
  },
1570
1571
  set: function (isHover) {
1571
- this.setState(Object.assign(Object.assign({}, this.state), { isSidebarHover: isHover }));
1572
+ if (this.state.isSidebarExpandOnHover) {
1573
+ this.setState(Object.assign(Object.assign({}, this.state), { isSidebarHover: isHover }));
1574
+ }
1572
1575
  },
1573
1576
  enumerable: false,
1574
1577
  configurable: true
@@ -1708,9 +1711,9 @@
1708
1711
  this.setState(Object.assign(Object.assign({}, this.state), { hasHeader: true }));
1709
1712
  this.activateHeaderCssVars();
1710
1713
  };
1711
- UxAppShellService.prototype.activateTopMessage = function () {
1714
+ UxAppShellService.prototype.activateTopMessage = function (height) {
1712
1715
  this.setState(Object.assign(Object.assign({}, this.state), { hasTopMessage: true }));
1713
- this.activateTopMessageCssVars();
1716
+ this.activateTopMessageCssVars(height);
1714
1717
  };
1715
1718
  UxAppShellService.prototype.activateToolbar = function () {
1716
1719
  this.setState(Object.assign(Object.assign({}, this.state), { hasToolbar: true }));
@@ -1752,8 +1755,8 @@
1752
1755
  UxAppShellService.prototype.activateHeaderCssVars = function () {
1753
1756
  this.setCssVar('--eui-app-header-height-active', '--eui-app-header-height');
1754
1757
  };
1755
- UxAppShellService.prototype.activateTopMessageCssVars = function () {
1756
- this.setCssVar('--eui-app-top-message-height-active', '--eui-app-top-message-height');
1758
+ UxAppShellService.prototype.activateTopMessageCssVars = function (height) {
1759
+ this._setCssVarValue('--eui-app-top-message-height', height + "px");
1757
1760
  };
1758
1761
  UxAppShellService.prototype.activateToolbarCssVars = function () {
1759
1762
  this.setCssVar('--eui-app-toolbar-height-active', '--eui-app-toolbar-height');