@luscii-healthtech/web-ui 2.41.2 → 2.41.3

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.
@@ -1561,6 +1561,7 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
1561
1561
  "opacity-50": isDisabled,
1562
1562
  "pointer-events-none": isDisabled || isPending
1563
1563
  }, className);
1564
+ var textColorClass = allowedColors[textColor != null ? textColor : "base"];
1564
1565
  return /*#__PURE__*/React__default.createElement("button", _extends({
1565
1566
  ref: innerRef
1566
1567
  }, otherAttributes, {
@@ -1569,8 +1570,8 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
1569
1570
  onClick: handleClick,
1570
1571
  disabled: isDisabled,
1571
1572
  "aria-disabled": isDisabled
1572
- }), icon && /*#__PURE__*/React__default.createElement(icon, {
1573
- className: "w-6 h-6"
1573
+ }), icon && !isPending && /*#__PURE__*/React__default.createElement(icon, {
1574
+ className: "w-6 h-6 " + textColorClass
1574
1575
  }), isPending && /*#__PURE__*/React__default.createElement("span", {
1575
1576
  className: "opacity-100",
1576
1577
  // IE11 center translate fix
@@ -1581,7 +1582,7 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
1581
1582
  transform: "translate(-50%, -50%)"
1582
1583
  }
1583
1584
  }, /*#__PURE__*/React__default.createElement(Spinner, {
1584
- className: "text-white"
1585
+ className: textColorClass
1585
1586
  })), text && /*#__PURE__*/React__default.createElement(Text, {
1586
1587
  className: classNames({
1587
1588
  invisible: isPending,