Skip to content

Tab focus not working with hoo-toggle #163

Description

@gabbsmo

Describe the bug
I cannot use the tab key to focus the toggle component.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the style guide
  2. Click on the Atoms - Toggle headline
  3. Press the tab key
  4. Notice that the toggle do not have focus style
  5. Press space key
  6. Notice that the toggle value is not changing

Expected behavior
The toggle should have a focus style and be togglable using the keyboard.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Edge
  • Version: 134

Additional context
The checkbox input has display: none. Disabling this makes it work, but shows the native checkbox that we do not want to see.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions