Ability for annotations to also be links. #3989
UltraInstinct05
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
We shouldn't be adding more semantics to annotations – annotations should always open a tooltip. You can add a link to this tooltip. Otherwise, it's pretty unclear for the user what will happen when clicking an annotation, which is considered bad UX. Same UI components = same behavior, as a general rule of thumb. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature description
Currently, annotations are used for showing tooltips. I would like to request a feature similar to this, but instead of showing a tooltip, I wanted to make them links instead i.e. clicking on an annotation will navigate to target link.
What's your use case for the feature
Taking the base case from here #3976 (comment)
Currently, you cannot have markdown links within code blocks, but annotations provide a neat way to inject little icons in the code block. If that is coupled with a feature that makes annotations, "links", I could simply use annotations as links to given tabs using the latest https://squidfunk.github.io/mkdocs-material/reference/content-tabs/#anchor-links feature to fulfill my case.
Beta Was this translation helpful? Give feedback.
All reactions