interactive role must be focusable
<a
onClick={() => handleSelect(filter)}
role="button"
tabIndex={0}
>
{filter.name}
</a>
interactive role must be focusable
<a
onClick={() => handleSelect(filter)}
role="button"
tabIndex={0}
>
{filter.name}
</a>
interactive role must be focusable
Buttons are interactive controls and thus focusable. If the button role is added to an element
that is not focusable by itself (such as <span>, <div> or <p>) then, the tabindex attribute has
to be used to make the button focusable.
<a
onClick={() => handleSelect(filter)}
role="button"
tabIndex={0}
>
{filter.name}
</a>
The HTML attribute tabindex corresponds to the attribute tabIndex in React.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us