fix: enhance accessibility with tabIndex (#355)

- Add `tabIndex="-1"` to the navigation item for accessibility
This commit is contained in:
Spedon
2024-07-04 23:52:54 +08:00
committed by GitHub
parent e12c32388b
commit 7536288baa

View File

@@ -83,6 +83,7 @@ export default function StageNav(props: {
onKeyDown={handleKey}
onFocus={() => props.setHoverText(item)}
onMouseOver={() => props.setHoverText(item)}
tabIndex="-1"
/>
)}
</For>