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

Use isFocused instead of isFocusVisible for Input and Textarea components #2940

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

RobinMalfait
Copy link
Member

This PR improves the exposed data-focus for the Input and Textarea components.

This used to use the isFocusVisible, but for these components we always want to show a ring when it is focused regardless of whether it was focused via the keyboard or via the mouse.

We do this because we always want to show the focus ring regardless of
whether you used the mouse or the keyboard.
Copy link

vercel bot commented Jan 23, 2024

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

Name Status Preview Comments Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2024 10:53am
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2024 10:53am

@RobinMalfait RobinMalfait merged commit f2bc6fd into main Jan 23, 2024
8 checks passed
@RobinMalfait RobinMalfait deleted the fix/improve-data-focus branch January 23, 2024 11:13
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.

1 participant