Skip to content

Commit 4b97e8a

Browse files
authored
[Fix Accessibility]: Add tabIndex to VariantItem for improved accessibility (#1738)
- Keyboard focus order is not logical for the list items under 'Select CLI Version' button. keyboard focus is moving twice upon the version list items. https://github.com/user-attachments/assets/e3306e28-11ae-48be-b115-17c4ddabf62e
1 parent f3a2f73 commit 4b97e8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/variant-select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const StyledOverlay = styled(ActionMenu.Overlay)`
1616

1717
const VariantItem = ({title, shortName, url, active}) => {
1818
return (
19-
<ActionList.Item state={{scrollUpdate: false}} id={shortName} active={active}>
19+
<ActionList.Item state={{scrollUpdate: false}} id={shortName} active={active} tabIndex={null}>
2020
<LinkNoUnderline to={url}>{title}</LinkNoUnderline>
2121
</ActionList.Item>
2222
)

0 commit comments

Comments
 (0)