Skip to content

Suggestion: Improved accesibility #151

Description

@FrantisekVrab

Hi,

when I use "tab" for switching between buttons and inputs, the hidden checkbox input .react-toggle-screenreader-only is focusable, but I can't handle this state.

I suggest one of following (or both allowing to choose the one from these):

  1. Add tabIndex="-1" to this checkbox, so the whole toggle become not focusable.
  2. (Better) Add ...-focus or ...-active or similar class to .react-toggle-track or .react-toggle when this checkbox is in focus, so I can style the focus state of the toggle.

The one more step should be add role="switch" to .react-toggle

Thanks.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions