swarm-ui: make popovers and table filters usable from the keyboard
Opening a popover or a table filter now moves focus into it, closing one that left focus on nothing puts it back on the trigger, and the triggers carry aria-haspopup and aria-controls. The shared Popover covers every caller; the table filter popover, which has its own portal, does the same.
This commit is contained in:
parent
bf9d07aedc
commit
d4f58b3667
4 changed files with 109 additions and 6 deletions
|
|
@ -70,7 +70,9 @@ The tab also has an agent badge, with the agent's icon and name, ahead of the
|
|||
connection badge. It opens the agent's details in a popover under the badge:
|
||||
the same status, wanted state, inference settings, resource caps and linked accounts as the
|
||||
panel on `/agents`, without the terminal preview. The popover doesn't dim the
|
||||
page. Selecting outside it, or Escape, closes it. You can stop or pause the
|
||||
page. Selecting outside it, or Escape, closes it. From the keyboard, opening a
|
||||
popover moves focus into it, and Escape puts focus back on the badge. The filter
|
||||
popovers on table headers work the same way. You can stop or pause the
|
||||
agent, or link an account, without leaving the terminal. A subagent's tab opens
|
||||
its agent's details.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue