summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-11-22 16:27:32 +0100
committerLibravatar GitHub <noreply@github.com>2023-11-22 16:27:32 +0100
commit71e0aaee3c17df722c3474b335a807718184cce2 (patch)
tree8c0d70564aeadf6d41f1b2bf8995f06c593d88e1 /web
parent[chore]: Bump github.com/go-jose/go-jose/v3 from 3.0.0 to 3.0.1 (#2375) (diff)
downloadgotosocial-71e0aaee3c17df722c3474b335a807718184cce2.tar.xz
[bugfix/chore] id poll options properly (#2379)
* aria-labels for polls, id poll options properly * my bad, aria labels are for interactive elements
Diffstat (limited to 'web')
-rw-r--r--web/template/poll.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/poll.tmpl b/web/template/poll.tmpl
index bfc31a9dc..7aa323e4f 100644
--- a/web/template/poll.tmpl
+++ b/web/template/poll.tmpl
@@ -38,8 +38,8 @@
<ul class="poll-options">
{{- range $index, $pollOption := .WebPollOptions }}
<li class="poll-option">
- <label aria-hidden="true" for="option-{{- increment $index -}}" lang="{{- .LanguageTag.TagStr -}}">{{- emojify .Emojis (noescape $pollOption.Title) -}}</label>
- <meter aria-hidden="true" id="option-{{- increment $index -}}" min="0" max="100" value="{{- $pollOption.VoteShare -}}">{{- $pollOption.VoteShare -}}&#37;</meter>
+ <label aria-hidden="true" for="poll-{{- $pollOption.PollID -}}-option-{{- increment $index -}}" lang="{{- .LanguageTag.TagStr -}}">{{- emojify .Emojis (noescape $pollOption.Title) -}}</label>
+ <meter aria-hidden="true" id="poll-{{- $pollOption.PollID -}}-option-{{- increment $index -}}" min="0" max="100" value="{{- $pollOption.VoteShare -}}">{{- $pollOption.VoteShare -}}&#37;</meter>
<div class="sr-only">Option {{ increment $index }}:&nbsp;<span lang="{{ .LanguageTag.TagStr }}">{{ emojify .Emojis (noescape $pollOption.Title) -}}</span></div>
<div class="poll-vote-summary">
<span class="poll-vote-share">{{- $pollOption.VoteShareStr -}}&#37;</span>