Web可访问性 - 从TABPANEL导航到选项卡
我有一个由选项卡布局组成的模式,可以输入一些表单数据。该形式是可以长时间长的放射线群的列表。
为了使用户返回选项卡,目前必须通过无线电按钮将其整个偏移+选项卡返回到选项卡。
我知道逃脱应该关闭模态。从选项卡面板返回选项卡的预期键盘导航是什么,因此用户不必通过所有无线电按钮移动选项卡?
I have a modal that consists of tab layout to enter some form data. The form is a list of radiogroups that can be quite long.
For a user to get back to the tab, currently they have to shift+tab all the way back through the radio buttons to get back to the tab.
I know escape should close the modal. What is the expected keyboard navigation to return to a tab from a tab panel, so the user doesn’t have to shift tab through all of the radio buttons?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
没有预定义的标准键盘快捷键可以从其内部的内容返回选项卡控件。
在本机应用程序中,您可以使用CTRL+TAB/CTRL+SHIFT+TAB或CTRL+PAGEDOWN/UP或有时CTRL+数字转到Next/上一个选项卡。
但是,在网络上,这些快捷方式当然已经是为了控制浏览器本身的选项卡。您将无法拦截它们供自己使用,即使可以,这将是一个非常糟糕的主意,因为您会阻止用户更改浏览器选项卡。
如果您的模态对话框如此之大,那么也许您可以考虑修改逃生键的行为。
在第一次按下,您可以返回到选项卡控件上,如果您已经在选项卡控件上区域区域,则关闭对话框。
然后,用户应将逃生端两次按以完全关闭对话框。这与标准逃生行为相比,这可能是可以接受的,而不是定义一个全新的键盘快捷键,因为它是未知的,因为它是未知的,或者他们在适当的时刻没有获得信息或不记得的信息。
更一般而言,这也许是您的UI设计太复杂的迹象,您应该简化或组织不同。
将分开的对话框分开(例如,每个选项卡一个)呢?制作可以扩展/崩溃的小组?等等。
可访问性的很大一部分也就是使事情变得简单。如果它太复杂了,无法访问,也许您应该简化。
There is no predefined standard keyboard shortcut to go back to a tab control from inside its content.
IN a native app, you can go to next/previous tab with Ctrl+Tab/Ctrl+Shift+Tab or Ctrl+PageDown/Up, or sometimes Ctrl+number.
However, on the web, these shortcuts are of course already taken to control the tabs of the browser itself. You won't be able to intercept them for your own use, and even if you could, it would be a terribly bad idea because you would prevent the user from changing browser tab.
If your modal dialog is so big and so long, maybe you can think about modifying the behavior of the escape key.
On first press, you go back on the tab control, and if you area already on the tab control then it closes the dialog.
The user whould have then to press escape twice to close the dialog completely. This is a change from standard escape behavior, but it's maybe more acceptable than defining a completely new keyboard shortcut that no one will use because it's unknown or they didn't get the information at proper moment or didn't remember about it.
More generally, it's maybe the sign that your UI design is too complicated and that you should simplify it or organize it differently.
What about splitting into different dialogs (e.g. one per tab) ? Making groups that you can expand/collapse ? etc.
A big part of accessibility is also about making things simple. If it's too complicated to do it accessibly, maybe you should simplify.
Web应用程序中没有针对此操作定义的键盘快捷键。如果您看一下“键盘互动” “标签”上的文档:
值得注意的是您所设想的操作的任何快捷方式。您可以查看 Quentinc的答案从更多的UX角度来看,请使用一些替代解决方案。
There is no such keyboard shortcut defined for this action in web applications. If you take a look at the "keyboard interaction" section of the W3's Authoring Practices document on "Tabs":
Notably absent is any shortcut for the operation you are envisioning. You may look to QuentinC's answer for some alternative solutions from more of a UX perspective.
w3 org建议tab模式 ,当
tablist
具有ARIA-ARIA-CORDATION
设置为垂直
时,down arrow
可以替换arrow
功能来自 Alexander Nied的答案可以替换左箭头
功能(焦点上一个选项卡)。The w3 org recommendation for a Tab Pattern does contain a note that, when the
tablist
hasaria-orientation
set tovertical
, theDown Arrow
can replace theRight Arrow
functionality from Alexander Nied's answer (focus the next tab) andUp Arrow
can replace theLeft Arrow
functionality (focus the previous tab).