-
Notifications
You must be signed in to change notification settings - Fork 194
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
关于InputControl的交互行为 #16
Labels
Comments
没理解这个 |
|
那,ui-xxx-hover有没有可能干掉,在Control层面? |
现在是有个 |
好吧,我再考虑考虑。未来,hover、press这种mouse相关的状态,我觉得都可以考虑不要了。 |
已经在 808d8be 中移除了默认的鼠标交互,由CSS去实现,如果要js提供功能则则通过patch来做 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
以下两点是我 强烈 要推动的(甚至希望强制之):
因此,我提出以下建议:
hover
、active
、press
、focus
这些state由控件自己决定,仅样式上的变化的话,通过CSS处理,不通过鼠标事件管这事。:hover
、:active
、:focus
这几个伪类,样式通过这些伪类实现,不去使用这几个state相关的class。通过鼠标事件修改的class通常只能管理鼠标操作的情况,键盘操作不能覆盖,远没有伪类来得正确。InputControl
的主元素必须有tabindex
,默认值为0,这个可以在InputControl.prototype.initStructure
中实现。Select
应该能通过TAB聚焦,然后按方向键下或者回车打开层,使用方向键选择具体的项,按回车确认。The text was updated successfully, but these errors were encountered: