a11y: faster screen-reading of folders with jaws

Massimo Melina committed Mar 19, 2024 at 12:44 UTC c49d7dafd68da067eb086f1679c333b3e83748a3
1 file changed +1 -1
frontend/src/BrowseFiles.ts
+1 -1
@@ -207,7 +207,7 @@ const Entry = memo(({ entry, midnight, separator }: EntryProps) => {
207 const hasHover = useMediaQuery('(hover: hover)')
208 const showingButton = !file_menu_on_link || isFolder && !hasHover
209 const ariaId = useId()
210 - const ariaProps = { id: ariaId, 'aria-label': prefix(name + ' (', isFolder ? "Folder" : entry.web ? "Web page" : isLink ? "Link" : '', ')') }
210 + const ariaProps = { id: ariaId, 'aria-label': prefix(name + ', ', isFolder ? t`Folder` : entry.web ? t`Web page` : isLink ? t`Link` : '') }
211 return h('li', { className, label: separator },
212 h(CustomCode, {
213 name: 'entry',