@proximus/lavender-light 1.4.7-beta.1 → 1.4.8-alpha.2

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.
@@ -5788,20 +5788,20 @@ const _ContentHeader = class _ContentHeader extends PxElement {
5788
5788
  }
5789
5789
  createGridding(value) {
5790
5790
  const breakpoints = [
5791
- { prop: "hasGridding", gridProp: "gridCols", attr: "col-span" },
5791
+ { prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
5792
5792
  {
5793
5793
  prop: "hasGriddingMobile",
5794
- gridProp: "gridColsMobile",
5794
+ gridAttr: "grid-cols--mobile",
5795
5795
  attr: "col-span--mobile"
5796
5796
  },
5797
5797
  {
5798
5798
  prop: "hasGriddingTablet",
5799
- gridProp: "gridColsTablet",
5799
+ gridAttr: "grid-cols--tablet",
5800
5800
  attr: "col-span--tablet"
5801
5801
  },
5802
5802
  {
5803
5803
  prop: "hasGriddingLaptop",
5804
- gridProp: "gridColsLaptop",
5804
+ gridAttr: "grid-cols--laptop",
5805
5805
  attr: "col-span--laptop"
5806
5806
  }
5807
5807
  ];
@@ -5809,16 +5809,16 @@ const _ContentHeader = class _ContentHeader extends PxElement {
5809
5809
  "px-grid > px-container"
5810
5810
  );
5811
5811
  if (value !== null) {
5812
- breakpoints.forEach(({ prop, gridProp, attr }) => {
5812
+ breakpoints.forEach(({ prop, gridAttr, attr }) => {
5813
5813
  if (this[prop]) {
5814
- this.$grid[gridProp] = "3";
5815
- spanElement.setAttribute(attr, "2");
5814
+ this.$grid.setAttribute(gridAttr, "3");
5815
+ spanElement == null ? void 0 : spanElement.setAttribute(attr, "2");
5816
5816
  }
5817
5817
  });
5818
5818
  } else {
5819
- breakpoints.forEach(({ gridProp, attr }) => {
5820
- this.$grid[gridProp] = "1";
5821
- spanElement.removeAttribute(attr);
5819
+ breakpoints.forEach(({ gridAttr, attr }) => {
5820
+ this.$grid.setAttribute(gridAttr, "1");
5821
+ spanElement == null ? void 0 : spanElement.setAttribute(attr, "1");
5822
5822
  });
5823
5823
  }
5824
5824
  }