« get me outta code hell

content, test: linkThing: set custom interaction cue properly - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-02-06 22:19:48 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-02-10 13:31:06 -0400
commitc17fbefb7d3a8da87ebaee061a4d1a4af8dc03f0 (patch)
tree8116de8cce047b1e88d69019eb03102ed6bfe76d /src/content/dependencies
parent5920fa888dd50ce577c1f9d8864b23231f84a34b (diff)
content, test: linkThing: set custom interaction cue properly
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/linkThing.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/content/dependencies/linkThing.js b/src/content/dependencies/linkThing.js
index b4cfda03..3902f380 100644
--- a/src/content/dependencies/linkThing.js
+++ b/src/content/dependencies/linkThing.js
@@ -108,6 +108,10 @@ export default {
       linkAttributes.add('title', data.name);
     }
 
+    if (showWikiTooltip) {
+      linkAttributes.add('class', 'text-with-tooltip-interaction-cue');
+    }
+
     const content =
       (html.isBlank(slots.content)
         ? language.sanitize(name)
@@ -131,6 +135,7 @@ export default {
 
     return relations.textWithTooltip.slots({
       attributes: wrapperAttributes,
+      customInteractionCue: true,
 
       text:
         relations.linkTemplate.slots({