@momentum-design/components 0.27.4 → 0.27.5

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.
@@ -183,7 +183,7 @@ class Button extends Buttonsimple {
183
183
  */
184
184
  inferButtonType() {
185
185
  var _a, _b;
186
- const slot = (_b = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot')) === null || _b === void 0 ? void 0 : _b.assignedNodes().length;
186
+ const slot = (_b = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot')) === null || _b === void 0 ? void 0 : _b.assignedNodes().filter((node) => { var _a; return node.nodeType !== Node.TEXT_NODE || ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim()); }).length;
187
187
  if (slot && (this.prefixIcon || this.postfixIcon)) {
188
188
  this.typeInternal = BUTTON_TYPE_INTERNAL.PILL_WITH_ICON;
189
189
  this.setAttribute('data-btn-type', 'pill-with-icon');
package/package.json CHANGED
@@ -37,5 +37,5 @@
37
37
  "lit": "^3.2.0",
38
38
  "uuid": "^11.0.5"
39
39
  },
40
- "version": "0.27.4"
40
+ "version": "0.27.5"
41
41
  }