From e5313248a8ed967a915f072d3991b6d046badf02 Mon Sep 17 00:00:00 2001 From: Gwyneth Morgan Date: Sun, 14 Jan 2024 17:42:59 -0800 Subject: [PATCH] Add non-JS fallback for reaction tooltips (#28785) When JavaScript is not loaded, fall back to displaying reaction tooltips with the default browser `title` attribute. An element with a present but empty `data-tooltip-content` will use the `title` attribute for its tippy.js tooltip content, so when JavaScript is enabled, this functions the same as the current behavior. --- templates/repo/issue/view_content/reactions.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/repo/issue/view_content/reactions.tmpl b/templates/repo/issue/view_content/reactions.tmpl index b7ca943e0..da6319667 100644 --- a/templates/repo/issue/view_content/reactions.tmpl +++ b/templates/repo/issue/view_content/reactions.tmpl @@ -2,7 +2,9 @@ {{range $key, $value := .Reactions}} {{$hasReacted := $value.HasUser $.ctxData.SignedUserID}} {{ReactionToEmoji $key}}