Skip to content

[Search]【a11y】search input 的 role 应该是 searchbox #330

Closed
@flyinhigh

Description

@flyinhigh
  • I have searched the issues of this repository and believe that this is not a duplicate.

Component

Search

Feature Description

<input role="combobox" aria-autocomplete="list" aria-disabled="false" placeholder="请输入" height="100%" autocomplete="off" value="">  

不应该是 combobox,某些情况下是跟 Table 一起连用,只是搜索框,这种情况下应该是 searchbox
可以放开 role 这个属性让用户自己修改

combobox 的用法可以参考 https://www.w3.org/TR/wai-aria-practices-1.1/examples/combobox/aria1.1pattern/listbox-combo.html

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A11yAccessibility issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions