mehdibha / dotUI

✨ Accessible, mobile friendly, modern UI components.
https://dotui.org
MIT License
1.11k stars 25 forks source link

[bug] No Outline on Switch Component #21

Open biomathcode opened 2 months ago

biomathcode commented 2 months ago

Describe the bug

No outline visible on the switch component while in focus. The behavior is inconsistent with Switch from react-aria-component.

https://github.com/user-attachments/assets/35f757ea-40cf-4e20-870d-0e5592967ff9

Affected component/components

Switch

How to reproduce

  1. go to https://dotui.org/components/inputs/switch
  2. Press tab on switch, while enter would work, outline is not visible on the component while in focus
  3. Check out https://react-spectrum.adobe.com/react-aria/Switch.html, for the ideal behavior

Codesandbox link

No response

System Info

Chrome, Windows

Before submitting