Repository navigation
v0.224.0
Minor Changes
- #1734
0def7123bThanks @tenphi! -ComboBoxtakes anemptyLabelfor a status that isn't an option, such as "No matches" or "Searching…". With it set, a list with no options stays open and shows the label instead of closing: typed text that matches nothing, no items, or a load with none yet. The label is not an option, so the arrow keys skip it andEnternever picks it. It describes the empty listbox, and a polite status announces a text label to screen readers once the list settles on it, not while loading; an element label is shown but not announced. A text label is therefore on the page twice: find it in tests through the listbox's description rather than by text. WhileisLoading, a list that opens empty shows the label after a second, and a list already on screen stays through the load. Switch the label's text onisLoadingto say the list is loading. WithoutemptyLabel,ComboBoxbehaves as before. Use it instead of a disabled option that stands in for a status, which the arrow keys now reach and screen readers announce as an unavailable choice.
Patch Changes
-
#1734
0def7123bThanks @tenphi! -ComboBoxhighlights the first option when options land in a list that is already open, as a search's results do, the way it does when the list opens. Before, nothing was highlighted, yetEnterstill picked the first option. -
#1736
0dd893ef9Thanks @tenphi! - The agent harness names harnesspm by its new package,@harnesspm/cli: theuikit:colorsusage line now printsnpx -y @harnesspm/cli run uikit:colors, which also works outside the project folder. -
#1737
935eec7ffThanks @tenphi! -SearchComboBox:Escapeon a list that a load still holds back (open, but waiting forloadingDelaybefore it shows) now cancels it and acts as on a closed list: it clears the text when clearable, or goes on to a surrounding dialog when the input is empty. Before, it only cancelled the hidden list and kept the key, so the firstEscapein a dialog did nothing visible. -
#1734
0def7123bThanks @tenphi! -SearchComboBoxno longer hides its list when a new load empties it: a list already on screen stays and showsLoading…(or youremptyLabel) until the results land, so a server search doesn't make it blink out between keystrokes. A list that opens with no results while loading still waitsloadingDelaybefore it shows. Screen readers now hear the empty state ("No results found" or your textemptyLabel) through a polite status once the list settles on it, not while loading; an element label is shown but not announced. A text label is therefore on the page twice: a test that finds it withgetByTextshould check the listbox's description instead.