-
Notifications
You must be signed in to change notification settings - Fork 368
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
Do the ARIA TABS 1.2 fail WCAG 1.4.10 Reflow? #2284
Comments
I think that's a border case. The element itself is exactly 320 px wide (tablist+tabpanel), but with the padding from the body it happens that not the tabpanel has to be scrolled, but the whole page to get the tabpanel completely in the visible area. |
At VMware, we tackled this with an overflow Tabs design as seen in the "Overflow Tabs" example http://www.chrislane.info/clarity3demo1/. The tradeoff in this implementation, is that there is a button that only sighted mouse users need. |
Per conversation in August 2, 2022 Telecon:
|
It is important that the content of the tabpanel does not have to be scrolled horizontally to read it! If the tablist needs to be scrolled horizontally, I don't think it's that problematic, but I don't know if that meets any of the 1.4.10 exceptions.
|
These are some methods of addressing the issue but the point of this standard remains the 2 dimensional scrolling. As with any standard there are many ways to address it. In this particular case the most straightforward way to fix this issue is via the horizontal content scrolling as outlined in the standard. That solution is outline within the standard, please feel free to review the standard. |
The current implementation of tabpanels is clearly a violation of SC 1.4.10 because they must be scrolled horizontally after each line of text. The display has thus worsened significantly compared to the initial findings. |
The ARIA Authoring Practices (APG) Task Force just discussed The full IRC log of that discussion<jugglinmike> Topic: ARIA TAB pattern and WCAG 1.4.10 Reflow<jugglinmike> github: https://github.com//issues/2284 <jugglinmike> CurtBellew: the short-term suggestion is to remove one or two of the tabs so that the content fits inside the frame and doesn't produce the scrollbars <jugglinmike> CurtBellew: I found that scrollbars remained even after removing one of the tabs <jugglinmike> CurtBellew: The solution might work, but we'll have to remove more than one tab <jugglinmike> CurtBellew: As an alternative, we can produce verticle scrollbar, but one present only for the content which requires it (rather than for the entire document) <jugglinmike> Matt_King: I'm wondering if tabs are the right user-interface design for this situation <jugglinmike> Matt_King: We may need two examples. One for the "super-simple" case with a small number of tabs, and another that's more complicated and supports any number of tabs <jugglinmike> jongund: We could use "overflow: hidden" with elipses so that as the text squeezes, you'll see just the beginning of each tab <jugglinmike> JamesNurthen: I think a "simple" example like what Matt_King has proposed would help us write tests, but I don't think it's realistic for people to use that in the real world. Overflow occurs so commonly that an example which doesn't support it isn't very useful <jugglinmike> Matt_King: Maybe the "simple" example should demonstrate the use of icons as table labels, since that is a more realistic application of a tab list which doesn't necessarily overflow <jugglinmike> Jem: Chris Lane has a demo for "Overflow Tabs" which incorporates a drop-down to include tabs which would otherwise cause overflow <jugglinmike> Jem: http://www.chrislane.info/clarity3demo1/ <jugglinmike> JamesNurthen: I couldn't get this "menu button in a tab list" ready in time for APG version 1.3 <jugglinmike> Summary: We need proposals for icon tabs, and we need to open a separate issue for how we're going to handle overflow |
Resolves #2284 and #2257 with the following changes: 1. Changes CSS so it defines tab width as a percentage of screen width. This prevents screen magnification from causing horizontal scrolling. As the screen is magnified ,the height of the tabs increases and the tab content reflows to fit the new dimensions. 2. Adds explanation of the use of percentage to the Accessibility Features section. --------- Co-authored-by: Matt King <a11yThinker@gmail.com> Co-authored-by: Andrea N. Cardona <cardona.n.andrea@gmail.com>
When using the zoom instructions from the Understanding Success Criterion 1.4.10: Reflow setting a screen width of 1280px @400% browser zoom the Tabpanel content is truncated and horizontal scrolling occurs.
My personal testing demonstrates that the Tabs do reflow or stack, however the Tabpanel content does not reflow.
ALT=ARIA Tabs example zoomed and content is cut off.

ALT=Showing Chrome Developer tools where I have removed all other page content so that only the Tab widget is available.

The text was updated successfully, but these errors were encountered: