Skip to content

Commit 16eb119

Browse files
makhmudjon-inadullaevMakhmudjon Inadullaev
andauthored
list items position fixed (npm#276)
* list items position fixed * screenReader reads list item title Co-authored-by: Makhmudjon Inadullaev <makhmudjon@MakhmudjonsMBP2.home>
1 parent c810906 commit 16eb119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

theme/src/components/variant-select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function VariantSelect(props) {
4848
}
4949
}
5050

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>);
5252
});
5353

5454
return (

0 commit comments

Comments
 (0)