a11y: missing labels

Massimo Melina committed Jan 12, 2024 at 15:08 UTC 976541f4e6346e281ac6c6f4591568baefd1e7d4
3 files changed +8 -2
frontend/src/BrowseFiles.ts
+2
@@ -149,6 +149,7 @@ const Paging = memo(({ nPages, current, pageSize, pageChange, atBottom }: Paging
149 const to = from + 10
150 return h('div', { id: 'paging' },
151 h('button', {
152 + title: t('go_first', "Go to first item"),
153 className: !current ? 'toggled' : undefined,
154 onClick() { pageChange(0) },
155 }, hIcon('to_start')),
@@ -162,6 +163,7 @@ const Paging = memo(({ nPages, current, pageSize, pageChange, atBottom }: Paging
163 }, shrink && !(i%10) ? (i/10) + 'K' : i * pageSize) )
164 ),
165 h('button', {
166 + title: t('go_last', "Go to last item"),
167 className: atBottom ? 'toggled' : undefined,
168 onClick(){ pageChange(nPages-1, true) }
169 }, hIcon('to_end')),
src/langs/hfs-lang-en.json
+3 -1
@@ -153,6 +153,8 @@
153 "Auto-play": "Auto-play",
154 "autoplay_seconds": "Seconds to wait on images",
155 "Select file": "Select file",
156 - "Select all": "Select all"
156 + "Select all": "Select all",
157 + "go_first": "Go to first item",
158 + "go_last": "Go to last item"
159 }
160 }
src/langs/hfs-lang-it.json
+3 -1
@@ -145,6 +145,8 @@
145 "Auto-play": "Auto-play",
146 "autoplay_seconds": "Secondi di attesa mostrando immagini",
147 "Select file": "Seleziona file",
148 - "Select all": "Seleziona tutto"
148 + "Select all": "Seleziona tutto",
149 + "go_first": "Vai all'inizio",
150 + "go_last": "Vai alla fine"
151 }
152 }