a11y: some screen-readers (jaws) were reading the link-icon of search results
Massimo Melina committed
Mar 18, 2024 at 18:46 UTC
a9940cd91f6a1ec9ee7a5b293ae056d81b980362
1 file changed
+1
-1
frontend/src/BrowseFiles.ts
+1
-1
@@ -233,7 +233,7 @@ const Entry = memo(({ entry, midnight, separator }: EntryProps) => {
233
onClick: fileMenu
234
}, hIcon('menu'), t`Menu`)
235
] : containerName ? [
236
- h('a', { href: uri, onClick, tabIndex: -1 }, ico),
236
+ h('a', { href: uri, onClick, tabIndex: -1, 'aria-hidden': true }, ico),
237
h(Link, { to: containerDir, className: 'container-folder', tabIndex: -1 }, containerName),
238
h('a', { href: uri, onClick, ...ariaProps }, name)
239
] : [h('a', { href: uri, onClick, ...ariaProps }, ico, name)],