Skip to content
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

希望增加focus和focus-visible的全局设置项 #6540

Open
3 tasks done
JohnGuan opened this issue Nov 14, 2024 · 0 comments
Open
3 tasks done

希望增加focus和focus-visible的全局设置项 #6540

JohnGuan opened this issue Nov 14, 2024 · 0 comments
Labels
feature request New feature or request

Comments

@JohnGuan
Copy link

问题的清晰而简明的描述

我希望能够有一个切换focus和focus-visible全局设置项,以便切换focus触发方式。而不是单独给组件设置focusable,这样虽然鼠标交互时不显示,但是也同时失去了键盘交互时的获焦功能。

建议的解决方案

建议在config provider中新增一个设置项,比如focus,未定义则全局使用focus,(当前默认样式)。定义为visible则全局使用focus-visble作为focus样式的应用伪类。

备选方案

No response

附加上下文

No response

验证

  • 阅读 贡献指南
  • 阅读 文档
  • 检查是否已经存在请求相同功能的问题,以避免创建重复的问题。
@JohnGuan JohnGuan added the feature request New feature or request label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant