summaryrefslogtreecommitdiff
path: root/web/template/status.tmpl
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2025-04-09 14:14:20 +0200
committerLibravatar GitHub <noreply@github.com>2025-04-09 14:14:20 +0200
commit19cfa8d126a2ff54298150529e58e5e4f5495f09 (patch)
tree3a569e6c456cc7ea13f16f04c5cd81301b71e5f2 /web/template/status.tmpl
parent[feature] add TOTP two-factor authentication (2FA) (#3960) (diff)
downloadgotosocial-19cfa8d126a2ff54298150529e58e5e4f5495f09.tar.xz
[bugfix] Fix a couple accessibility issues with `:focus` elements (#3979)
* [bugfix/frontend] Fix accessibility/focus issues in settings + web ui * fix little error * tweaks
Diffstat (limited to 'web/template/status.tmpl')
-rw-r--r--web/template/status.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/template/status.tmpl b/web/template/status.tmpl
index 872b784ed..4263e6020 100644
--- a/web/template/status.tmpl
+++ b/web/template/status.tmpl
@@ -51,7 +51,13 @@ media photoswipe-gallery {{ (len .) | oddOrEven }} {{ if eq (len .) 1 }}single{{
<div class="spoiler-content p-summary" lang="{{- .LanguageTag.TagStr -}}">
{{ noescape .SpoilerContent | emojify .Emojis }}
</div>
- <span class="button" role="button" tabindex="0">Toggle visibility</span>
+ {{- with . }}
+ {{- /*
+ IMPORTANT: Button semantics and aria labels in "button" class below are added in
+ frontend/index.js, as the button doesn't function as a button without javascript.
+ */ -}}
+ {{- end }}
+ <span class="button">Toggle visibility</span>
</summary>
<div class="text">
{{- with . }}