@foeewni/web-core 3.0.0-alpha.16 → 3.0.0-alpha.18

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": "@foeewni/web-core",
3
- "version": "3.0.0-alpha.16",
3
+ "version": "3.0.0-alpha.18",
4
4
  "description": "Friend of the Earth EWNI Core for frontend projects",
5
5
  "browser": {
6
6
  "foe-core.js": "dist/js/foe.core.min.js",
@@ -57,6 +57,7 @@ https://www.bennadel.com/blog/4310-detecting-rendered-line-breaks-in-a-text-node
57
57
  if (
58
58
  !target.firstChild
59
59
  || target.firstChild.nodeType !== Node.TEXT_NODE
60
+ || !target.textContent.replace(/\s+/g, ' ').trim().length
60
61
  ) {
61
62
  return;
62
63
  }
@@ -354,8 +355,8 @@ https://www.bennadel.com/blog/4310-detecting-rendered-line-breaks-in-a-text-node
354
355
  };
355
356
 
356
357
  // Go time
357
- document.addEventListener('DOMContentLoaded', init);
358
- document.addEventListener('load', init);
358
+ document.addEventListener('DOMContentLoaded', () => init());
359
+ document.addEventListener('load', () => init());
359
360
  window.addEventListener('resize', () => {
360
361
  createBackground('resize');
361
362
  });
@@ -601,9 +601,9 @@ $btn-link-disabled-color: $gray-600;
601
601
  $btn-block-spacing-y: .5rem;
602
602
 
603
603
  // Allows for customizing button radius independently from global border radius
604
- $btn-border-radius: $border-radius;
605
- $btn-border-radius-lg: $border-radius-lg;
606
- $btn-border-radius-sm: $border-radius-sm;
604
+ $btn-border-radius: 0;
605
+ $btn-border-radius-lg: 0;
606
+ $btn-border-radius-sm: 0;
607
607
 
608
608
  $btn-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
609
609