File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 46
46
{{- $displayText = upper $displayText -}}
47
47
{{- end -}}
48
48
49
- <!-- Render tooltip -->
50
- {{- if or $shortDefMatch (and $text $tooltip) -}}
51
- < span class ="tooltip-container ">
52
- < button class ="tooltip-trigger " aria-describedby ="tooltip-{{- $displayText | anchorize -}} "> {{- $displayText -}}</ button >
53
- < span id ="tooltip-{{- $displayText | anchorize -}} " class ="tooltip-content " role ="tooltip ">
54
- {{- $tooltipContent | safeHTML -}}{{- if $fullDefinitionLink -}}< a href ="{{- $fullDefinitionLink -}} " class ="tooltip-full-link " aria-label ="View full definition "> Glossary</ a > {{- end -}}
55
- </ span >
56
- </ span >
57
- {{- else -}}
58
- {{- $displayText -}}
59
- {{- end -}}
49
+ <!-- Render tooltip (on one line to prevent unnecessary whitespace around tooltip) -->
50
+ {{- if or $shortDefMatch (and $text $tooltip) -}}< span class ="tooltip-container "> < button class ="tooltip-trigger " aria-describedby ="tooltip-{{- $displayText | anchorize -}} "> {{- $displayText -}}</ button > < span id ="tooltip-{{- $displayText | anchorize -}} " class ="tooltip-content " role ="tooltip "> {{- $tooltipContent | safeHTML -}}{{- if $fullDefinitionLink -}}< a href ="{{- $fullDefinitionLink -}} " class ="tooltip-full-link " aria-label ="View full definition "> Glossary</ a > {{- end -}}</ span > </ span > {{- else -}}{{- $displayText -}}{{- end -}}
You can’t perform that action at this time.
0 commit comments