[Search] Add keyboard shortcuts and improve clear button UX
维护者通常 2 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
调研方向
从 packages/raystack/raystack/components/search/ 开始,阅读 Search 组件及其 InputField 集成。在处理 Escape-to-clear、clear-button 焦点、事件转发和 default search type 之前,先检查现有的组件行为。以下列出的交互能够一致地工作,并且已移动的 CSS-token 和 !important 项目仍在范围之外,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Summary
Search is a custom component wrapping InputField with search-specific functionality. Has CSS specificity issues, hardcoded values, and missing UX patterns.
Improvements
3. Add Escape key to clear input
Common search UX pattern — pressing Escape should clear the input and optionally blur it.
4. Improve clear button focus management
After clearing, focus stays on the clear button instead of returning to the input field.
6. Pass event object to onClear callback
onClear() fires without the event object, inconsistent with other event handlers.
7. Default type="search" on input
For semantic HTML, the underlying input should default to type="search".
Moved to Cross-Cutting Issues
The following items have been moved to cross-cutting issues that address them across all components:
- Replace hardcoded CSS values with design tokens (#672)
- Remove !important declarations (#678)
Files
packages/raystack/raystack/components/search/
- 主要语言
- TypeScript
- 星标
- 69
- 派生
- 13
- 平均合并
- 3 天 15 小时
- 30 天内合并 PR
- 24
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
raystack/apsara 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 2 天内回复
-
DataView: don't offer select/multiselect filters with empty filterOptions可能已有人在做 @rohanchkrabrty 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
raystack/apsara#849 · 已指派 1 人 ·
维护者通常 2 天内回复
相似的 Issue
-
area:deploy task
难度 2/5 1-3 小时 新手友好度 72/100
wilanis/wilanis-js#1017 ·
维护者通常 1 天内回复
-
documentation v2
难度 2/5 1-3 小时 新手友好度 76/100
modelcontextprotocol/servers#5133 ·
维护者通常 1 天内回复
-
budget bug feature frontend good-issue medium needs-review OSCI'26 payments
难度 2/5 1-3 小时 新手友好度 75/100
SatyamPandey-07/WorkSphere#5990 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
lugassawan/swe-workbench#799 ·
维护者通常 1 天内回复
-
bug good first issue javascript
难度 2/5 1-3 小时 新手友好度 82/100
yukikotani231/sqlsift#326 ·
维护者通常 1 天内回复