@proximus/lavender-light 2.0.0-alpha.42 → 2.0.0-alpha.44

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.
@@ -3508,9 +3508,11 @@ class Modal extends HTMLElement {
3508
3508
  }
3509
3509
  show() {
3510
3510
  this.$dialog.showModal();
3511
+ document.body.style.overflow = "hidden";
3511
3512
  }
3512
3513
  close() {
3513
3514
  this.$dialog.close();
3515
+ document.body.style.overflow = "";
3514
3516
  this.dispatchEvent(
3515
3517
  new CustomEvent(CLOSE_EVENT, {
3516
3518
  bubbles: true,
@@ -4853,7 +4855,7 @@ class Header extends WithExtraAttributes {
4853
4855
  <px-spacer></px-spacer>
4854
4856
  <px-hstack gap--mobile="none" gap="default">
4855
4857
  <slot name="header-actions"></slot>
4856
- <px-button-icon variant="naked" aria-label="${this.burgerMenuAriaLabel ?? "Open menu"}"
4858
+ <px-button-icon id="burger-menu" variant="naked" aria-label="${this.burgerMenuAriaLabel ?? "Open menu"}"
4857
4859
  aria-expanded="false" aria-controls="__lavender_mobile_menu" hidden--tablet hidden--laptop
4858
4860
  hidden--desktop>
4859
4861
  <px-icon name="burger_menu" from="lavender"></px-icon>
@@ -4918,11 +4920,9 @@ class Header extends WithExtraAttributes {
4918
4920
  });
4919
4921
  __privateMethod(this, _Header_instances, showMobileMenu_fn).call(this);
4920
4922
  });
4921
- this.shadowRoot.addEventListener("click", (event) => {
4922
- if (event.target.closest("px-button-icon")) {
4923
- this.$burgerMenu.setAttribute("aria-expanded", "true");
4924
- __privateMethod(this, _Header_instances, showMobileMenu_fn).call(this);
4925
- }
4923
+ this.$burgerMenu.addEventListener("click", () => {
4924
+ this.$burgerMenu.setAttribute("aria-expanded", "true");
4925
+ __privateMethod(this, _Header_instances, showMobileMenu_fn).call(this);
4926
4926
  });
4927
4927
  this.addEventListener("close-panel", () => {
4928
4928
  __privateMethod(this, _Header_instances, hidePanel_fn).call(this);
@@ -4985,7 +4985,7 @@ class Header extends WithExtraAttributes {
4985
4985
  return this.shadowRoot.querySelector("#backdrop-filter");
4986
4986
  }
4987
4987
  get $burgerMenu() {
4988
- return this.shadowRoot.querySelector("px-button-icon");
4988
+ return this.shadowRoot.querySelector("#burger-menu");
4989
4989
  }
4990
4990
  get $slotMain() {
4991
4991
  return this.querySelector('[slot="main"]');