@dloizides/ui-forms 1.28.2 → 1.29.0

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/dist/index.mjs CHANGED
@@ -143,7 +143,7 @@ function useIsGapOwned() {
143
143
  var ERROR_LIGHT_STEPS = ["500", "600", "700"];
144
144
  var ERROR_DARK_STEPS = ["300", "200", "400", "100", "500"];
145
145
  function fieldErrorInk(theme) {
146
- return readableScaleInk({ ...theme.semantic.error }, theme.colors.surface, ERROR_LIGHT_STEPS, ERROR_DARK_STEPS);
146
+ return theme.semanticText?.error ?? readableScaleInk({ ...theme.semantic.error }, theme.colors.surface, ERROR_LIGHT_STEPS, ERROR_DARK_STEPS);
147
147
  }
148
148
  var ERROR_FONT_SIZE = 12;
149
149
  var HINT_FONT_SIZE = 12;