Skip to content

EuiSwitch needs aria-labelledby to connect checkbox with label #1027

Closed

Description

@cjcenizal

In other words, the screen-reader should announce the label content when the switch is focused. This will fix elastic/kibana#19128.

Activity

  1. cchaos commented on Jul 19, 2018

    @cchaos
    Contributor

    Currently EuiSwitch will connect the label with the checkbox so long as you pass an ID. However, right now an ID is not required so it is possible to not have id and for connections. There's an old PR #779 that is supposed to create an ID if one isn't provided – the same way we handle id's in EuiFormRow.

  2. cjcenizal commented on Jul 19, 2018

    @cjcenizal
    ContributorAuthor

    Awesome! That PR will close out this issue once it's in and we upgrade.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions