Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add native label behavior for switch #2265

Merged

Conversation

deebov
Copy link
Contributor

@deebov deebov commented Feb 9, 2023

This PR adds the native label behavior for Switch. By default, a semantically valid label will "transfer" its hover event to the input this label is pointing to via for. This native behavior was missing in the current Switch component.

Before:
CleanShot 2023-02-09 at 16 59 19

After:
CleanShot 2023-02-09 at 16 54 15

@vercel
Copy link

vercel bot commented Feb 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 28, 2023 at 4:54PM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 28, 2023 at 4:54PM (UTC)

@vercel
Copy link

vercel bot commented Feb 9, 2023

@deebov is attempting to deploy a commit to the Tailwind Labs Team on Vercel.

A member of the Team first needs to authorize it.

@thecrypticace
Copy link
Contributor

Thank you! 🎉

This will be part of the next release of Headless UI for both React and Vue and will be available via our insiders build here in a few minutes:

npm install @headlessui/react@insiders
npm install @headlessui/vue@insiders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants