Bläddra i källkod

fix: correct an aria-labelledby error

jvoisin 3 dagar sedan
förälder
incheckning
f4de355374
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      internal/template/templates/common/feed_list.html

+ 2 - 2
internal/template/templates/common/feed_list.html

@@ -3,7 +3,7 @@
         {{ range .feeds }}
         <article
             class="item feed-item {{ if ne .ParsingErrorCount 0 }}feed-parsing-error{{ else if ne .UnreadCount 0 }}feed-has-unread{{ end }}"
-            aria-labelledby="feed-title-{{ .ID }} feed-entries-counter"
+            aria-labelledby="feed-title-{{ .ID }} feed-entries-counter-{{ .ID }}"
             tabindex="-1"
         >
             <header class="item-header" dir="auto">
@@ -16,7 +16,7 @@
                         {{ .Title }}
                     </a>
                 </h2>
-                <span id="feed-entries-counter" class="feed-entries-counter">
+                <span id="feed-entries-counter-{{ .ID }}" class="feed-entries-counter">
                     <span aria-hidden="true">(</span>
                     <span class="sr-only">{{ plural "page.unread_entry_count" .UnreadCount .UnreadCount }}</span>
                     <span aria-hidden="true">{{ .UnreadCount }} /</span>