Repository navigation
feat: open field descriptions on hover - #121
Merged
Merged
Conversation
The help icon beside a form field's label only opened its description on click, which users did not discover. It now also opens on mouse hover and stays open while the pointer moves onto it; click and touch still work. The description no longer takes focus when it opens, so hovering the icon cannot pull focus out of a field being typed in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 of 5 tasks
|
🎉 This PR is included in version 6.18.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
?) beside a form field's label only opened its description on click. It now also opens on mouse hover, stays open while the pointer moves from the icon onto the description, and closes ~100ms after the pointer leaves both.?cannot pull focus out of a field being typed in.The change is confined to
FieldGroupDescription, so every form field with adescriptiongets it.Test plan
FieldGroupDescription.test.tsx: renders nothing without a description, opens on hover, closes on leave, stays open moving onto the description, keeps focus in a focused input, stays open on hover+click, opens on touch tappnpm lintand fullvitestsuite (208 tests) passComponents/FormGrouped story: hover opens, moving onto the popover keeps it open, moving away closes it, hover then click leaves it openNeeded by DouglasNeuroInformatics/OpenDataCapture, whose user page relies on the
?tooltip for the account Status field.🤖 Generated with Claude Code