Skip to content

Commit e5e0042

Browse files
committed
fix: add data-has-description attribute to SearchResults for improved accessibility
1 parent 0e60f29 commit e5e0042

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/search.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const SearchResults = ({results, getItemProps, highlightedIndex}) => {
4444
as={LinkNoUnderline}
4545
to={item.path}
4646
active={highlightedIndex === index}
47+
data-has-description="true"
4748
aria-label={`${item.title}${hierarchy.length ? ` in ${hierarchy.map(s => s.shortName || s.title).join(' / ')}` : ` in ${siteMetadata.shortName}`}, ${index + 1} of ${results.length}`}
4849
>
4950
<Box sx={{display: 'flex', flexDirection: 'column', flex: '0 0 auto'}}>

0 commit comments

Comments
 (0)