Added title to back-to-top button (#2631)

* Add title to to-top button

* Rename
This commit is contained in:
Benjamin Staneck 2021-05-04 12:15:41 +02:00 committed by GitHub
parent 26d00333b0
commit 44d6fb04c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View File

@ -180,7 +180,7 @@
</div> </div>
</div> </div>
{% if "navigation.top" in features %} {% if "navigation.top" in features %}
<a href="#" class="md-top md-icon" data-md-component="top" data-md-state="hidden"> <a href="#" class="md-top md-icon" title="{{ lang.t('top.title') }}" data-md-component="top" data-md-state="hidden">
{% include ".icons/material/arrow-up.svg" %} {% include ".icons/material/arrow-up.svg" %}
</a> </a>
{% endif %} {% endif %}

View File

@ -33,5 +33,6 @@
"source.file.date.updated": "Last update", "source.file.date.updated": "Last update",
"source.file.date.created": "Created", "source.file.date.created": "Created",
"tabs.title": "Tabs", "tabs.title": "Tabs",
"toc.title": "Table of contents" "toc.title": "Table of contents",
"top.title": "Back to top"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -341,6 +341,7 @@
<a <a
href="#" href="#"
class="md-top md-icon" class="md-top md-icon"
title="{{ lang.t('top.title') }}"
data-md-component="top" data-md-component="top"
data-md-state="hidden" data-md-state="hidden"
> >

View File

@ -53,5 +53,6 @@
"source.file.date.updated": "Last update", "source.file.date.updated": "Last update",
"source.file.date.created": "Created", "source.file.date.created": "Created",
"tabs.title": "Tabs", "tabs.title": "Tabs",
"toc.title": "Table of contents" "toc.title": "Table of contents",
"top.title": "Back to top"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}