Use <button> instead of <a> without href

It is more semantic to use a `<button>` tag in the place of an `<a>`
when there is no other page being linked to. In this circumstance, we're
using JavaScript to present a modal to the user on click.

This change makes the "Upload" and "Rename" buttons appear in the
browser's tab index.
This commit is contained in:
Benjamin Willems
2021-03-21 14:21:07 -07:00
parent bc877dc9dc
commit a22208a0be
+4 -5
View File
@@ -54,21 +54,21 @@
{{#allow_editing}}
{{#allow_uploads}}
<a
<button
class="btn BtnGroup-item btn-sm hide-sm hide-md
minibutton-upload-page"
>
Upload
</a>
</button>
{{/allow_uploads}}
{{#editable}}
<a
<button
class="btn BtnGroup-item btn-sm hide-sm hide-md
minibutton-rename-page"
>
Rename
</a>
</button>
<a
class="btn BtnGroup-item btn-sm hide-sm hide-md"
href="{{edit_path}}/{{escaped_url_path}}"
@@ -81,7 +81,6 @@
</div>
</div>
{{#allow_editing}}
{{#editable}}
<div class="TableObject-item">