Skip to content

First modal example does not adequately focus the primary modal button #700

Closed

Description

@aphelionz

Steps to reproduce (assumes ChromeVox or similar)

  1. Open https://elastic.github.io/eui/#/guidelines/modals in a new tab.
  2. Tab through the navigation to the main content pane.
  3. Tab to the "Show Component Code" button and press enter
  4. Tab to the first "Show Modal" button
  5. Press enter

Actual Result

The "Show Modal" button remains focused and the modal opens in front of the focused button

Expected Result

The "Save" button is auto-focused.

Category: #699: Elastic UI Modals Accessibility
Relevant WCAG Criteria: 3.2.2 Predictable on Input

Activity

  1. added
    documentation
    on Jun 8, 2018
  2. w33ble commented on Jul 10, 2018

    @w33ble
    Contributor

    This is probably related, but I'm not sure if it should be a new issue or not. Since the modal body doesn't get focus, the escape hotkey also does not work to dismiss the modal, at least until you click inside the modal somewhere.

  3. chandlerprall commented on Sep 18, 2020

    @chandlerprall
    Contributor

    Modal guideline page no longer exists. Modal accessibility - including keyboard and screen reader support - is now being tracked in #3889

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilitydocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions