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