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

Split button keyboard accessibility #6642

Closed
erjohnms opened this issue Oct 10, 2018 · 6 comments
Closed

Split button keyboard accessibility #6642

erjohnms opened this issue Oct 10, 2018 · 6 comments

Comments

@erjohnms
Copy link
Member

Bug Report

Split Buttons, by default, only allow for alt+down to expand the menu of the split button. I'm aware there is a menuTriggerKeyCode to make it whatever I want and I've started adding just 'down' as a key to expand these menus because otherwise we get pinged for not meeting keyboard accessibility guidelines.

I think its pretty weird that we have to add down as an option to all of our split buttons in order to meet the Aria guidelines of down arrow opening things like combo boxes and menus.

I don't know the history of why only alt+down is the default. But I feel like just allowing down would be a better default?

example:
https://www.w3.org/TR/wai-aria-practices-1.1/#combobox

  • [ComboBox] It is displayed when the Down Arrow key is pressed or the show button is activated, possibly with a dependency on the content of the textbox.

  • [MenuBar] Down Arrow: When focus is on a menuitem in a menubar, opens its submenu and places focus on the first item in the submenu.

Priorities and help requested:

Are you willing to submit a PR to fix?

Requested priority: Low

Products/sites affected: Azure DevOps (but I've fixed it for us by using menuTriggerKeyCode)

@micahgodbolt
Copy link
Member

something to consider in #6134

@dzearing
Copy link
Member

I believe the reasoning here is that it avoids conflicts with FocusZone scenarios where you want to arrow between buttons, some being split.

@jspurlin any take on this?

@dzearing dzearing added this to the March 2019 milestone Feb 14, 2019
@dzearing
Copy link
Member

I've started a mail thread with the right folks.

@micahgodbolt
Copy link
Member

what's the expectation of split buttons in vertical navigation. As I arrow down each item in the list would we need to prevent the behavior in that scenario?

@jspurlin
Copy link
Contributor

jspurlin commented Feb 14, 2019

I agree with @dzearing and the reasoning he provided

@dzearing
Copy link
Member

I am going to close this, as the default should not be down arrow, but we have an email thread going and if we deem changes are required in that thread we will reopen.

@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants