Skip to content

Editor info link: tooltip "Annotation Editor Help" - #7595

Merged
santicomp2014 merged 2 commits into
mainfrom
editor-info-tooltip
Nov 12, 2026
Merged

santicomp2014 merged 2 commits into
mainfrom
editor-info-tooltip

Conversation

@santicomp2014

@santicomp2014 santicomp2014 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Changes the tooltip of the info link above the annotation editor to "Annotation Editor Help". The accessible name stays as it was. The link is still behind the annotation_editor_info flag.

Part of hypothesis/product-backlog#1753. Follows #7594.

What changes

Before After
Tooltip (title) About the Annotation editor Annotation Editor Help
Accessible name (aria-label) About the Annotation editor. Learn what this text field is for. Opens Help Center article in a new tab. Unchanged

Because the tooltip differs from the accessible name, Chrome exposes the tooltip as the link's description, as it did before this change.

Nothing else about the link changes: place, icon, colour, size, destination, new tab, tab order, feature flag and Help panel rule.

Testing

The MarkdownEditor tooltip test checks the new title and the unchanged aria-label. Lint, typecheck and formatting pass, and the whole suite passes.

Note: the final wording ("Annotation editor help", with an accessible description) was pushed to this branch after it was merged, so it is not in this PR. It is in a follow-up PR.

🤖 Generated with Claude Code

…name

The tooltip of the info link above the annotation editor is now
"Annotation Editor Help".

The link's accessible name is now the same text. Before, the link had a
`title` and a longer, different `aria-label`. A browser then uses the
`title` as the link's description, so a screen reader read the tooltip
out a second time after the name, and with a new tooltip the two would
have said different things. Now what is shown on hover is what is
announced, and what voice control listens for.

The rest of the old name, "Learn what this text field is for. Opens
Help Center article in a new tab.", is the link's description
(`aria-describedby`). The element that holds it is `hidden`, so it is
read only as the description and not again as text after the link. Its
id comes from `useId`, so two editors open at once do not share one.

Nothing else about the link changes, and it is still behind the
`annotation_editor_info` flag.

Part of hypothesis/product-backlog#1753.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.62%. Comparing base (b1c5852) to head (794b207).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7595   +/-   ##
=======================================
  Coverage   99.62%   99.62%           
=======================================
  Files         286      286           
  Lines       12061    12061           
  Branches     2935     2935           
=======================================
  Hits        12016    12016           
  Misses         45       45           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

The previous commit also changed the link's accessible name to match the
new tooltip, and moved the rest of the sentence into a description. That
is undone: the accessible name stays the sentence from
hypothesis/product-backlog#1753, "About the Annotation editor. Learn
what this text field is for. Opens Help Center article in a new tab.",
as it was before this branch. Only the tooltip changes, to "Annotation
Editor Help".

The hidden description element, its `aria-describedby` and the tests for
it are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@santicomp2014 santicomp2014 changed the title Editor info link: "Annotation Editor Help" as tooltip and accessible name Editor info link: tooltip "Annotation Editor Help" Nov 12, 2026
@santicomp2014
santicomp2014 merged commit fd3d79d into main Nov 12, 2026
3 checks passed
@santicomp2014
santicomp2014 deleted the editor-info-tooltip branch November 12, 2026 16:04
@santicomp2014 santicomp2014 changed the title Editor info link: tooltip "Annotation Editor Help" Editor info link: "Annotation editor help", with an accessible description Nov 12, 2026
@santicomp2014 santicomp2014 changed the title Editor info link: "Annotation editor help", with an accessible description Editor info link: tooltip "Annotation Editor Help" Nov 12, 2026
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