From 909cf833ee7af961f73e8525806f19017208e6f5 Mon Sep 17 00:00:00 2001 From: Matthias Schoettle Date: Mon, 25 Nov 2024 22:52:13 +0000 Subject: [PATCH] Add rule label to tooltip --- assets/js/app.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/app.coffee b/assets/js/app.coffee index efb6495..be26eba 100644 --- a/assets/js/app.coffee +++ b/assets/js/app.coffee @@ -43,7 +43,7 @@ class Choosealicense # Exclude license elements in the legend licenseLiElement = $(".license-#{ruletype} .#{rule["tag"]}").not("dd.license-#{ruletype} .#{rule["tag"]}") tooltipAttr = @tooltipAttributesMapperByRuleType[ruletype] - licenseLiElement.attr "aria-label", "#{tooltipAttr.heading}: #{rule.description}" + licenseLiElement.attr "aria-label", "#{rule.label} #{tooltipAttr.heading.toLowerCase()}: #{rule.description}" licenseLiElement.addClass("hint--bottom hint--large hint--no-animate