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

feat(Dropdown): add a11y prop to tab moves focus #1600

Merged
merged 1 commit into from Oct 3, 2019

Commits on Aug 16, 2019

  1. feat(Dropdown): add a11y prop to tab moves focus

    This adds a new a11y prop to Dropdrop, defaults to true.
    When the a11y prop is explicitly set to false:
    This changes the way tab works within the Dropdown.
    tab/shift-tab will move focus to the next logic item:
    tab will move down until the end. Then, at the end of the menu it will focus the next focusable item on the page and close the menu.
    shift-tab will move up until the start. Thenm, at the beginning of the menu it will focus the toggle and close the menu.
    
    Fixes #1441
    TheSharpieOne committed Aug 16, 2019
    Copy the full SHA
    941b895 View commit details
    Browse the repository at this point in the history