Skip to content

[Docs] "Show Component Code" Button is Read Twice by Screen Reader #696

Closed

Description

@aphelionz

Steps to reproduce (assumes ChromeVox or similar)

image

  1. Open https://elastic.github.io/eui/#/guidelines/buttons in a new tab.
  2. Tab through the navigation to the main content pane. The "ghost" Show Component Code button is first selected.

Actual Result

"Show component code" tab "Show Component Code"

Expected Result

"Show component code"

Suggested Fix
Remove the offending markup that causes this element to be read twice.

Category: #688: Elastic UI Buttons Accessibility
Relevant WCAG Criteria: 2.4.4 Link Purpose (In Context)

Activity

  1. timroes commented on May 7, 2018

    @timroes
    Contributor

    The actual root cause here, is that we nest link into button elements (https://github.com/elastic/eui/blob/master/src-docs/src/components/guide_page/guide_page.js#L28). That should not happen. If we need <Link> from react-router here, I think the only viable solution is, give it the className attribute and use the same classes as the EuiButton.

    The better solution of course would be, if we could just use <EuiButton href=".."> here, but no idea if react-router allows us to calculate that required href attribute.

  2. added
    documentation
    on Jun 8, 2018
  3. changed the title [-]"Show Component Code" Button is Read Twice by Screen Reader[/-] [+][Docs] "Show Component Code" Button is Read Twice by Screen Reader[/+] on Mar 18, 2020
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