codexly-ui 0.10.107 → 0.10.108

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.
@@ -999,8 +999,12 @@ class ClxButtonComponent {
999
999
  if (!textOverride)
1000
1000
  return cls;
1001
1001
  // Strip any text-* class the variant branch above already added, then apply the override —
1002
- // avoids two text-* classes of equal CSS specificity racing on source order.
1003
- return cls.replace(/(?:^|\s)text-\S+/g, '').trim() + ` ${resolveColor(textOverride).text}`;
1002
+ // avoids two text-* classes of equal CSS specificity racing on source order. Uses the literal
1003
+ // text-{color}-{shade} class (not resolveColor().text, which ignores the chosen color and
1004
+ // auto-picks white/dark-800 for contrast against a background — the override IS the user's
1005
+ // explicit color choice, not a background to contrast against).
1006
+ const { color: oc, shade: os } = parseColorInput(textOverride);
1007
+ return cls.replace(/(?:^|\s)text-\S+/g, '').trim() + ` text-${oc}-${os}`;
1004
1008
  }, ...(ngDevMode ? [{ debugName: "_colorClass" }] : /* istanbul ignore next */ []));
1005
1009
  /** Auto-applies primaryButtonTextColor/secondaryButtonTextColor from the theme when this
1006
1010
  * button's own resolved color IS the theme's primaryColor/secondaryColor and no explicit