Skip to content

Commit 909cf83

Browse files
committed
Add rule label to tooltip
1 parent 7d687a2 commit 909cf83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/app.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Choosealicense
4343
# Exclude license elements in the legend
4444
licenseLiElement = $(".license-#{ruletype} .#{rule["tag"]}").not("dd.license-#{ruletype} .#{rule["tag"]}")
4545
tooltipAttr = @tooltipAttributesMapperByRuleType[ruletype]
46-
licenseLiElement.attr "aria-label", "#{tooltipAttr.heading}: #{rule.description}"
46+
licenseLiElement.attr "aria-label", "#{rule.label} #{tooltipAttr.heading.toLowerCase()}: #{rule.description}"
4747
licenseLiElement.addClass("hint--bottom
4848
hint--large
4949
hint--no-animate

0 commit comments

Comments
 (0)