@gudhub/ssg-web-components-library 1.0.121 → 1.0.123

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gudhub/ssg-web-components-library",
3
- "version": "1.0.121",
3
+ "version": "1.0.123",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -277,6 +277,7 @@ get-in-touch-form {
277
277
  font-size: 12px;
278
278
  line-height: 1.4;
279
279
  opacity: 0.7;
280
+ color: white;
280
281
  text-align: center;
281
282
  }
282
283
 
@@ -183,7 +183,11 @@ class ImageComponent extends GHComponent {
183
183
  const fallbackSrc = this.getAttribute('src');
184
184
  const dataMaxWidth = parseInt(this.getAttribute('data-max-width'), 10);
185
185
 
186
- const src = this.normalizeUrlPath(dataSrc && dataUrl ? dataSrc : fallbackSrc);
186
+ const rawSrc = this.normalizedSrc
187
+ || imageFromPicture.getAttribute('data-src')
188
+ || this.getAttribute('src');
189
+
190
+ const src = this.normalizeUrlPath(rawSrc);
187
191
  if (!src) {
188
192
  console.warn('No valid image source found.');
189
193
  return;