summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel F. Dickinson <20735818+danielfdickinson@users.noreply.github.com>2021-09-05 02:24:00 -0400
committerGitHub <noreply@github.com>2021-09-05 11:54:00 +0530
commit8456ad83ae93d4522df4aca50684e19527095078 (patch)
treed2e9bca6f3f7a57ec8b2d0688282a4d1fe727063
parentd76bc91ed0f1ad7a9dd0490905029297f4efbce3 (diff)
Fix button not allowed inside anchor in footer - HTML validator complaint (#551)
Move attributes to anchor and remove not required span (which was used place of a button which was against HTML spec).
-rw-r--r--layouts/partials/footer.html10
1 files changed, 4 insertions, 6 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 4f7182b..391c65a 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -14,12 +14,10 @@
{{- end }}
{{- if (not .Site.Params.disableScrollToTop) }}
-<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)">
- <button class="top-link" id="top-link" type="button" accesskey="g">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
- <path d="M12 6H0l6-6z" />
- </svg>
- </button>
+<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
+ <path d="M12 6H0l6-6z" />
+ </svg>
</a>
{{- end }}