@dloizides/ui-forms 1.28.1 → 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;
@@ -1795,7 +1795,7 @@ function SelectControl({
1795
1795
  accessibilityHint,
1796
1796
  accessibilityState: { expanded: isOpen },
1797
1797
  "aria-expanded": isOpen,
1798
- "aria-haspopup": "listbox",
1798
+ "aria-haspopup": isListbox ? "listbox" : "menu",
1799
1799
  "aria-labelledby": labelledById,
1800
1800
  onBlur: isListbox ? close : void 0,
1801
1801
  onPress: toggle,