Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(a11y): enhance keyboard interaction in search mode #592
feat(a11y): enhance keyboard interaction in search mode #592
Changes from 4 commits
e2112e9
0411b7a
481c983
a9efbc7
9b51e4a
f4f76ab
b99d2fb
644bf9d
89900b8
2659bd1
bf62a42
e3ef3e5
516d0b8
750de00
945f128
467b056
37d7cfc
86cf480
134f4f4
5d29cc0
4640c4d
229f4f7
9c7ad27
6f5a84c
97bde6c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用 testing lib
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
默认激活的节点是禁用的节点
在测试
should active first option when dropdown is opened
中,下拉菜单打开时默认激活了第一个禁用的节点'0 label'
。根据用户体验和可访问性的最佳实践,应该跳过禁用的节点,激活第一个可选择的未禁用节点'1 label'
。建议修改测试用例,使其在打开下拉菜单时,默认激活第一个未禁用的节点。可以修改如下代码:
同时,需要检查组件逻辑,确保在实际使用中,下拉菜单打开时不会默认聚焦到禁用的节点。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
避免注释掉测试用例
发现测试用例
should not add new tag when key enter is pressed if nothing is active
被注释掉了。这可能会导致相关功能缺乏测试覆盖,潜在的问题无法被及时发现。建议重新启用并完善该测试用例,或者如果该测试不再适用,提供详细的注释说明原因,并考虑安全地删除此冗余代码。