list items position fixed (#276)
* list items position fixed * screenReader reads list item title Co-authored-by: Makhmudjon Inadullaev <makhmudjon@MakhmudjonsMBP2.home>
Makhmudjon Inadullaev committed
Oct 27, 2022 at 19:19 UTC
16eb11917416f3dd420f5344b9ef993a222877e5
1 file changed
+1
-1
theme/src/components/variant-select.js
+1
-1
@@ -48,7 +48,7 @@ function VariantSelect(props) {
48
}
49
}
50
51
- items.push(<Dropdown.Item onKeyDown={onItemEnterKey} onBlur={index === (variantPages.length - 1) ? collapseDropdown : undefined} tabIndex={match.variant.tabIndex} onClick={() => { window.location.href = match.page.url; }} key={match.variant.title}>{match.variant.title}</Dropdown.Item>);
51
+ items.push(<Dropdown.Item aria-label={`${match.variant.title}. List items ${index + 1} of ${variantPages.length}`} onKeyDown={onItemEnterKey} onBlur={index === (variantPages.length - 1) ? collapseDropdown : undefined} tabIndex={0} onClick={() => { window.location.href = match.page.url; }} key={match.variant.title}>{match.variant.title}</Dropdown.Item>);
52
});
53
54
return (