Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sidebar/components/Annotation/AnnotationEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function AnnotationEditor({
// which link to external websites.
const showHelpLink = serviceConfig(settings)?.enableHelpPanel ?? true;

// The "About the Annotation editor" link also goes to an external website,
// The "Annotation Editor Help" link also goes to an external website,
// so it follows the same rule, on top of its feature flag.
const showEditorInfoLink =
showHelpLink && store.isFeatureEnabled('annotation_editor_info');
Expand Down
6 changes: 3 additions & 3 deletions src/sidebar/components/MarkdownEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ function EditorInfoLink() {
href="https://web.hypothes.is/help/using-the-annotation-editor/"
target="_blank"
rel="noopener noreferrer"
title="About the Annotation editor"
title="Annotation Editor Help"
aria-label="About the Annotation editor. Learn what this text field is for. Opens Help Center article in a new tab."
underline="none"
variant="custom"
Expand Down Expand Up @@ -606,8 +606,8 @@ export type MarkdownEditorProps = {
showHelpLink?: boolean;

/**
* Whether to display the "About the Annotation editor" link above the
* toolbar. Defaults to false.
* Whether to display the "Annotation Editor Help" link above the toolbar.
* Defaults to false.
*/
showEditorInfoLink?: boolean;

Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/components/test/MarkdownEditor-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ describe('MarkdownEditor', () => {
const wrapper = createComponent({ showEditorInfoLink: true });
const link = wrapper.find(linkSelector).getDOMNode();

assert.equal(link.getAttribute('title'), 'About the Annotation editor');
assert.equal(link.getAttribute('title'), 'Annotation Editor Help');
assert.equal(
link.getAttribute('aria-label'),
'About the Annotation editor. Learn what this text field is for. Opens Help Center article in a new tab.',
Expand Down
Loading