weareinreach / InReach

Prefer that non-interactive, visible elements (such as <div>) that have click handlers use the role attribute JS-0765
Anti-pattern
Minor
4 days agoa year old
Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element
128	const { classes } = useStyles()
129	const router = useRouter()
130	return (
131		<div className={classes.itemComponent} onClick={() => router.push('/suggest')}>132			<Text className={classes.unmatchedText}>
133				<Trans i18nKey='search.suggest-resource' />
134			</Text>