Skip to content

Commit aa2ef41

Browse files
committedApr 22, 2021
make tooltip work on the scroll button
1 parent c7f34df commit aa2ef41

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎data/ui.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,5 @@ toggle_images:
180180
on: Images are on, click to hide
181181
hide_single: Hide image
182182
show_single: Show image
183-
scroll_to_top: Scroll to top
183+
scroll_button:
184+
scroll_to_top: Scroll to top

‎includes/scroll-button.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<button class="arrow-for-scrolling-top" id="js-scroll-top">
2-
<span aria-label="{% data ui.scroll_to_top %}">{% octicon "chevron-up" %}</span>
1+
<button class="arrow-for-scrolling-top tooltipped tooltipped-n tooltipped-no-delay" aria-label="{% data ui.scroll_button.scroll_to_top %}" id="js-scroll-top">
2+
{% octicon "chevron-up" %}
33
</button>

0 commit comments

Comments
 (0)
Please sign in to comment.