@ppg_pl/pallete 2.0.9 → 2.0.10

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.
@@ -96,8 +96,11 @@ const MyColorInfo = class {
96
96
  constructor(hostRef) {
97
97
  index$1.registerInstance(this, hostRef);
98
98
  this.closeInfoBox = index$1.createEvent(this, "closeInfoBox", 7);
99
- this.goToProduct = () => {
99
+ this.close = index$1.createEvent(this, "close", 7);
100
+ this.goToProduct = (e) => {
100
101
  var _a;
102
+ e.preventDefault();
103
+ this.closeModalHandler();
101
104
  this.currentColor &&
102
105
  setDataLayer({
103
106
  event: 'GoToProduct',
@@ -137,6 +140,9 @@ const MyColorInfo = class {
137
140
  this.infoBoxWidth = undefined;
138
141
  this.closeImage = 'close.png';
139
142
  }
143
+ closeModalHandler() {
144
+ this.close.emit();
145
+ }
140
146
  render() {
141
147
  var _a;
142
148
  return (index$1.h("div", { class: `boxes__box-content ${this.currentColor.textWhite ? 'boxes__box-content__white' : ''}`, style: {