Use SVG for scroll to top button icon

This commit is contained in:
Helen Chong 2024-06-11 02:05:11 +08:00
parent b817f16013
commit f19feef807
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,8 @@
<button class="top-btn hidden" aria-label="Scroll to top">🡹</button>
<button class="top-btn hidden" aria-label="Scroll to top">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M7 11l5-5m0 0l5 5m-5-5v12" />
</svg>
</button>
<style>
.top-btn {