-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Expandable UI sections accessibility #469
Comments
Thank you again. Very actionable — the best kind of -'able! Do defaults make a difference for accessibility here? For example if we show the sidebar open by default, and show all boxes inside expanded by default, would that be better or worse? |
Is the panel really analogous to a modal? As in, is it necessary for the user to complete a task (or abort that task) before being allowed to leave the panel? Is there ever a case where information necessary to complete that task is available elsewhere on the screen? |
Ah ok, I was assuming it was closed by default, as in the screenshot posted on Slack. Then yes, defaults make a difference: if it's open by default we can't treat it as a modal.
This way, users could choose to navigate trough all the sidebar controls/options or collapse it and go straight to Saved, Preview, Publish. |
Any reason not to have two Publish buttons? One before your sidebar (full of disclosure widgets) and one at the end of the sidebar. This presumes that the goal of the UI is to reduce friction to hitting that Publish button, of course. |
Hm... the Publish button on the top would be between the sidebar and the controls that open the sidebar... not sure that would be so ideal 😞 |
In the case of the "Post Settings" button, the first step for better a11y would be adding an |
See #473 |
@afercia did your recent work on the tabs and panels address this? |
Can we edit the title to make it more clear? We should find a different way to keep these considerations, maybe an accessibility doc could group them. |
Totally agree, would be great to have someone volunteering for this 🙂 |
Recommended combobox aria-controls is non-configurable and may recommend a poorer experience. See: #469 See: http://www.heydonworks.com/article/aria-controls-is-poop
Happened to come across this when testing something else... And I have some views.
|
I"m removing the documentation tab so this gets focused on for a code solution. |
Many things have changed since this issue was opened. Gutenberg has taken a different direction, making most of the expandable "panels" behave like sort of modals. In these cases there's the need to manage focus programmatically and implement also other things, like constraining tabbing within a panel. See #6987 for this. We've discussed this issue during today's accessibility bug scrub and decided to close it. Specific pending cases should be addressed in specific issues. |
This is about any UI section that expands to show something, for example, the Post Settings:
For accessibility, ideally the expandable sections should be placed in the markup immediately after the control that expands them, or they should be implemented in a way that the sections become the only "reachable" content after the control that expands them.
There are different techniques to implement this, depending on the placement of the expandable section in the markup. Worth exploring a bit the best option. For now, I'd suggest just a couple things:
aria-expanded
attribute on the button would be missed (yes, the buttons should usearia-expanded
)aria-controls
to reference a panel which is far from the button in the markup wouldn't solve the issue, because aria-controls is poop (sorry, it's a quote!)aria-hidden
, etc.)The text was updated successfully, but these errors were encountered: