File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ class Choosealicense
40
40
# Dynamically add annotations as title attribute to rule list items
41
41
for ruletype, rules of window .annotations
42
42
for rule in rules
43
- # Only select license elements in table, not legend
44
- licenseLiElement = $ (" td .license-#{ ruletype} .#{ rule[" tag" ]} " )
43
+ # Exclude license elements in the legend
44
+ licenseLiElement = $ (" .license- #{ ruletype } . #{ rule[ " tag " ] } " ). not ( " dd .license-#{ ruletype} .#{ rule[" tag" ]} " )
45
45
tooltipAttr = @tooltipAttributesMapperByRuleType [ruletype]
46
- licenseLiElement .attr " aria-label" , " #{ tooltipAttr .heading } : #{ rule .description } "
46
+ licenseLiElement .attr " aria-label" , " #{ rule . label } #{ tooltipAttr .heading . toLowerCase () } : #{ rule .description } "
47
47
licenseLiElement .addClass (" hint--bottom
48
48
hint--large
49
49
hint--no-animate
You can’t perform that action at this time.
0 commit comments