We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
可以考虑参考浏览器默认行为:
The text was updated successfully, but these errors were encountered:
补充一下,还需要考虑全局焦点自动切换的功能。关闭上层浮层,焦点应当自动切换触发上层浮层的交互元素上。举例:
点击 Button → 弹出 Dialog 点击 DatePicker 按钮 → 弹出 Calendar 浮层 点击日期 ← 收起 Calendar 浮层 聚焦 DatePicker 按钮 点击 Dialog 关闭按钮 ← 收起 Dialog 聚焦 Button
即每个浮层应当记录之前触发自己弹出的元素,在关闭时,将焦点「还给」该元素。
Sorry, something went wrong.
考虑几点:
Toast
Overlay
document.activeElement
OverlayManager
source
focus()
参考资料:
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_dialog_role#Focus_management
Implemented in #227.
No branches or pull requests
可以考虑参考浏览器默认行为:
The text was updated successfully, but these errors were encountered: