Skip to content

Commit aa2ef41

Browse files
committed
make tooltip work on the scroll button
1 parent c7f34df commit aa2ef41

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

data/ui.yml

Lines changed: 2 additions & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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)