@proximus/lavender-mega-dropdown 2.0.0-alpha.17 → 2.0.0-alpha.19

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.
Files changed (2) hide show
  1. package/dist/index.es.js +9 -4
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -303,9 +303,9 @@ class Xt extends Tt {
303
303
  v(this, x);
304
304
  v(this, b);
305
305
  v(this, $, () => `<svg aria-hidden="true">
306
- <use xlink:href="#icon-${this.name}"></use>
306
+ <use xlink:href=""></use>
307
307
  </svg>`);
308
- this.shadowRoot.innerHTML = n(this, $).call(this), this.role = "img", A(this, b, (o = this.attachInternals) == null ? void 0 : o.call(this)), n(this, b) && (n(this, b).role = "img");
308
+ this.shadowRoot.innerHTML = n(this, $).call(this), A(this, b, (o = this.attachInternals) == null ? void 0 : o.call(this)), n(this, b) && (n(this, b).role = "img");
309
309
  }
310
310
  static get observedAttributes() {
311
311
  return [...super.observedAttributes, ...Kt];
@@ -333,6 +333,10 @@ class Xt extends Tt {
333
333
  }
334
334
  }
335
335
  connectedCallback() {
336
+ this.role = "img", this.name && this.$el.firstElementChild.setAttribute(
337
+ "xlink:href",
338
+ `#icon-${this.name}`
339
+ );
336
340
  const e = document.querySelectorAll("px-icon-set");
337
341
  e || console.log("<px-icon-set> component not found");
338
342
  for (const o of e) {
@@ -1411,8 +1415,8 @@ vt.replaceSync(te);
1411
1415
  class re extends HTMLElement {
1412
1416
  constructor() {
1413
1417
  super(), this.template = () => `
1414
- <px-container border-radius="none" padding-inline="none" background-color="${this.backgroundColor}">
1415
- <div class="content-wrapper ${this.$slotOverlap ? "overlapped" : ""}">
1418
+ <px-container border-radius="none" padding-inline="none">
1419
+ <div class="content-wrapper">
1416
1420
  <px-vstack gap="heading-to-content">
1417
1421
  <slot name="heading"></slot>
1418
1422
  <px-vstack gap="none">
@@ -1427,6 +1431,7 @@ class re extends HTMLElement {
1427
1431
  `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [vt];
1428
1432
  }
1429
1433
  connectedCallback() {
1434
+ this.$container.setAttribute("background-color", this.backgroundColor), this.$slotOverlap && this.shadowRoot.firstElementChild.querySelector(".content-wrapper").classList.add("overlapped");
1430
1435
  const t = this.querySelector('[slot="heading"]');
1431
1436
  !this.paddingBlock && !this.paddingTop && !this.paddingBottom && !this.paddingBlockMobile && !this.paddingTopMobile && !this.paddingBottomMobile && !this.paddingBlockTablet && !this.paddingTopTablet && !this.paddingBottomTablet && !this.paddingBlockLaptop && !this.paddingTopLaptop && !this.paddingBottomLaptop && (this.$container.paddingBlock = "none"), t || this.shadowRoot.querySelector("px-vstack").setAttribute("gap", "none");
1432
1437
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-mega-dropdown",
3
- "version": "2.0.0-alpha.17",
3
+ "version": "2.0.0-alpha.19",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",