No more "view annotation" icon

Hello again!
This proposal is about the very little icon used to open or close an annotation.

Current situation

To view an annotation, you have to click the corner icon of the annotation.

Issue

  • Unfamiliar UX pattern (in most software, annotations do not have a corner icon to view them, you just click the highlighted text)
  • little clickable area

Proposal

Drop the icon and make the annotated text in content clickable.

  • When clicking the annotated text, the annotation opens.
  • When clicking it again, the annotation closes.

Look 1

Look 2 (+ hover effect)

Ideally, we’d also have some visual effect when hovering on a annotation so it’s obvious that it’s clickable. Also, it differentiates highlighted text from annotated text.

What do you think?

Do you think this is doable? Is it a difficult implementation?
Do you see any negative effects?

Images are gone in your post :-/

immagine

This could interfere in cases where the annotated text has links.

The visual I have is a different from yours:

Screenshot 2024-12-18 at 17.38.05

I think there’s a problem with all the images you’ve included, they all look like:

Screenshot 2024-12-18 at 17.42.06

Another issue is that it’s not from our Icon set, I can’t find it on https://design.xwiki.org/xwiki/bin/view/Proposal/XWiki%20Icon%20Set

How do you add a new annotation on a subword of a phrase already annotated for example? AFAIK that was the reason for the current behavior.

Thx

1 Like

What would happen if there’s a link inside the annotated text? When clicking the link, will both actions happen, or only one (which one)?

Usually, for accessibility, we want to avoid nesting interactive elements.
I’m not sure how we’d do things without nesting though…

+1 It’s a hard coded icon in the style.


Thanks for starting this proposal,
Lucas C.

True, I kept this as a separate small issue in my design page.

One way we could do this is how Notion does it. They seem to have a maximum 2 levels of unerlining annotations: highlighting and a more saturated highlighting

Referencing Notion once more:

They seem to prioritize the link layer.

In the case of annotations with links they have 3 layers:

  1. link in annotation
  2. normal text in annotation
  3. rest of text (non-annotated)

When clicking on the link in the annotation, the link opens, the annotation is not selected.

Although I think it is doable to implement this, it might be quite a lot of effort for improving an already functional process.

Sounds good to me :+1: It’s important that we agree and settle on an interaction pattern because it makes a couple niche use cases impossible. E.g. for this one, users won’t be able to open annotation only on links.

As far as I know, this logic should be quite easy to implement.

Thanks,
Lucas.