@inboxsdk/core 0.2.29-alpha.2 → 0.2.29-alpha.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.
@@ -19,9 +19,10 @@ export class CollapsiblePanelView extends EventEmitter {
19
19
  };
20
20
  static elementCss = {
21
21
  ACTIVE: 'apV',
22
- COLLAPSED: 'aBa',
22
+ COLLAPSED: 'aBA',
23
23
  /** A hover popover has both ACTIVE _and_ HOVER */
24
24
  HOVER: 'aJu',
25
+ COLLAPSED_HOVER: 'bym',
25
26
  };
26
27
  #panelDescriptor;
27
28
  #element;
@@ -75,7 +76,10 @@ export class CollapsiblePanelView extends EventEmitter {
75
76
  #setupElement() {
76
77
  const { iconUrl: themedIcons, className, name = '', } = this.#panelDescriptor?.primaryButton ?? {};
77
78
  const element = document.createElement('div');
78
- element.className = ELEMENT_CLASS;
79
+ const burgerMenuOpen = GmailElementGetter.isAppBurgerMenuOpen();
80
+ element.className = cx(ELEMENT_CLASS, {
81
+ [CollapsiblePanelView.elementCss.COLLAPSED]: !burgerMenuOpen,
82
+ });
79
83
  const primaryButtonClass = cx(PRIMARY_BUTTON_ELEMENT_CLASS, className);
80
84
  let iconUrl;
81
85
  if (themedIcons) {