@dloizides/ui-forms 1.28.0 → 1.28.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.28.2
4
+
5
+ INVOICE-FU-22 "To and Cc dropdown of saved people".
6
+
7
+ - A `SelectControl` without `menuAnchor` sets `aria-haspopup="menu"`, matching its `role=menu` popup; with `menuAnchor` it stays `"listbox"`.
8
+
9
+ ## 1.28.1
10
+
11
+ INVOICE-FU-22 "To and Cc dropdown of saved people".
12
+
13
+ - Every `SelectControl` trigger sets `aria-haspopup="listbox"`, which `useEscapeKey` in `ui-layout` reads to give Escape to the open menu.
14
+
3
15
  ## 1.28.0
4
16
 
5
17
  INVOICE-FU-22 "To and Cc dropdown of saved people", D-FU22-5 "Review findings are fixed in the packages".
package/dist/index.js CHANGED
@@ -1740,7 +1740,6 @@ var CHEVRON_UP = "\u25B4";
1740
1740
  function listboxTriggerAria(testID, hasList, highlighted) {
1741
1741
  return {
1742
1742
  role: "combobox",
1743
- "aria-haspopup": "listbox",
1744
1743
  "aria-controls": hasList ? listboxDomId(testID) : void 0,
1745
1744
  "aria-activedescendant": highlighted !== void 0 ? optionDomId(testID, highlighted.value) : void 0
1746
1745
  };
@@ -1796,6 +1795,7 @@ function SelectControl({
1796
1795
  accessibilityHint,
1797
1796
  accessibilityState: { expanded: isOpen },
1798
1797
  "aria-expanded": isOpen,
1798
+ "aria-haspopup": isListbox ? "listbox" : "menu",
1799
1799
  "aria-labelledby": labelledById,
1800
1800
  onBlur: isListbox ? close : void 0,
1801
1801
  onPress: toggle,