File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ class Choosealicense
4040 # Dynamically add annotations as title attribute to rule list items
4141 for ruletype, rules of window .annotations
4242 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" ]} " )
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
You can’t perform that action at this time.
0 commit comments