fix: 修复返回顶部链接的可访问性并移除无效的 javascript:void(0)
This commit is contained in:
1 parent
b749a50dc0
commit
52b51d0069
1 file changed
+1
-1
@@ -78,7 +78,7 @@
|
|||||||
<!-- Floating Controllers (VOID style) -->
|
<!-- Floating Controllers (VOID style) -->
|
||||||
<aside id="ctrler-panel">
|
<aside id="ctrler-panel">
|
||||||
<div class="ctrler-item" title="返回顶部">
|
<div class="ctrler-item" title="返回顶部">
|
||||||
<a href="javascript:void(0);" onclick={scrollToTop}>
|
<a href="#top" aria-label="返回顶部" onclick={(e) => { e.preventDefault(); scrollToTop(); }}>
|
||||||
<svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" width="16" height="16"><path fill="currentColor" d="M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"></path></svg>
|
<svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" width="16" height="16"><path fill="currentColor" d="M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"></path></svg>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user