@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.js CHANGED
@@ -149,7 +149,7 @@ function useIsGapOwned() {
149
149
  var ERROR_LIGHT_STEPS = ["500", "600", "700"];
150
150
  var ERROR_DARK_STEPS = ["300", "200", "400", "100", "500"];
151
151
  function fieldErrorInk(theme) {
152
- return designTokens.readableScaleInk({ ...theme.semantic.error }, theme.colors.surface, ERROR_LIGHT_STEPS, ERROR_DARK_STEPS);
152
+ return theme.semanticText?.error ?? designTokens.readableScaleInk({ ...theme.semantic.error }, theme.colors.surface, ERROR_LIGHT_STEPS, ERROR_DARK_STEPS);
153
153
  }
154
154
  var ERROR_FONT_SIZE = 12;
155
155
  var HINT_FONT_SIZE = 12;