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

fix(stepper): use up/down arrows for navigating vertical stepper #8920

Merged
merged 1 commit into from
Jan 4, 2018

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Dec 10, 2017

Currently both vertical and horizontal steppers use the left/right arrows to move focus between steps. Based on the a11y guidelines (https://www.w3.org/TR/wai-aria-practices-1.1/#tabpanel) the vertical stepper should use the up/down arrows instead.

@crisbeto crisbeto added Accessibility This issue is related to accessibility (a11y) pr: needs review labels Dec 10, 2017
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 10, 2017
@mmalerba
Copy link
Contributor

Should the horizontal arrows still work for the vertical stepper? The way they worded it, it sounds kind of like up/down are an extra feature for vertical, but they all support left/right:

  1. If the tabs in a tab list are arranged vertically:
    A. Down Arrow performs as Right Arrow is described above.
    B. Up Arrow performs as Left Arrow is described above.
  2. If the tab list is horizontal, it does not listen for Down Arrow or Up Arrow so those keys can provide their normal browser scrolling functions even when focus is inside the tab list.

@crisbeto
Copy link
Member Author

Hmm I see what you mean, but it seems a little counter-intuitive.

@mmalerba
Copy link
Contributor

I can see how users would want it though. I suspect if I relied primarily on keyboard for navigation I wouldn't want to have to think about what direction my tabs are, I would just want my right/left to do the same thing as usual

@crisbeto crisbeto force-pushed the vertical-stepper-keyboard-nav branch from 99a350d to a3e3d87 Compare December 11, 2017 18:25
Currently both vertical and horizontal steppers use the left/right arrows to move focus steps. Based on the a11y guidelines (https://www.w3.org/TR/wai-aria-practices-1.1/#tabpanel) the vertical stepper should use the up/down arrows instead.
@crisbeto crisbeto force-pushed the vertical-stepper-keyboard-nav branch from a3e3d87 to f329693 Compare December 11, 2017 18:26
@crisbeto
Copy link
Member Author

Makes sense. I've put back the left/right behavior for the vertical one and added the up/down on top.

@mmalerba mmalerba added pr: lgtm target: minor This PR is targeted for the next minor release action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release and removed pr: needs review target: minor This PR is targeted for the next minor release labels Dec 19, 2017
@jelbourn jelbourn merged commit 7b78b74 into angular:master Jan 4, 2018
jelbourn pushed a commit to jelbourn/components that referenced this pull request Jan 8, 2018
…ular#8920)

Currently both vertical and horizontal steppers use the left/right arrows to move focus steps. Based on the a11y guidelines (https://www.w3.org/TR/wai-aria-practices-1.1/#tabpanel) the vertical stepper should use the up/down arrows instead.
jelbourn pushed a commit to jelbourn/components that referenced this pull request Jan 9, 2018
…ular#8920)

Currently both vertical and horizontal steppers use the left/right arrows to move focus steps. Based on the a11y guidelines (https://www.w3.org/TR/wai-aria-practices-1.1/#tabpanel) the vertical stepper should use the up/down arrows instead.
jelbourn pushed a commit that referenced this pull request Jan 9, 2018
Currently both vertical and horizontal steppers use the left/right arrows to move focus steps. Based on the a11y guidelines (https://www.w3.org/TR/wai-aria-practices-1.1/#tabpanel) the vertical stepper should use the up/down arrows instead.
tinayuangao pushed a commit that referenced this pull request Jan 10, 2018
Currently both vertical and horizontal steppers use the left/right arrows to move focus steps. Based on the a11y guidelines (https://www.w3.org/TR/wai-aria-practices-1.1/#tabpanel) the vertical stepper should use the up/down arrows instead.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y) action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants