Skip to content

feat: open field descriptions on hover - #121

Merged
joshunrau merged 1 commit into
mainfrom
feat/field-description-hover
Oct 7, 2026
Merged

joshunrau merged 1 commit into
mainfrom
feat/field-description-hover

Conversation

@thomasbeaudry

Copy link
Copy Markdown
Collaborator

Summary

  • The help icon (?) 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.
  • A click while it is already open from hover no longer toggles it shut. Touch and tap still open it, since touch screens cannot hover.
  • The description no longer takes focus when it opens, so hovering a ? cannot pull focus out of a field being typed in.

The change is confined to FieldGroupDescription, so every form field with a description gets it.

Test plan

  • New 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 tap
  • pnpm lint and full vitest suite (208 tests) pass
  • Checked in real Chromium against the Components/Form Grouped story: hover opens, moving onto the popover keeps it open, moving away closes it, hover then click leaves it open

Needed by DouglasNeuroInformatics/OpenDataCapture, whose user page relies on the ? tooltip for the account Status field.

🤖 Generated with Claude Code

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>
@joshunrau
joshunrau merged commit 6d2745a into main Oct 7, 2026
1 check passed
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 6.18.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants