-
Notifications
You must be signed in to change notification settings - Fork 16
Home
AlaricBaraou edited this page Jan 11, 2021
·
5 revisions
A11y Roles differences | |||
---|---|---|---|
Roles | |||
content | button | link | |
cursor on hover | default | pointer | pointer |
Usable states | |||
content | button | link | |
hover | ✅ | ✅ | ✅ |
focus | ✅ | ✅ | ✅ |
pressed | ❌ | ❌✅* | ❌ |
Required props | |||
content | button | link | |
role | ✅ | ✅ | ✅ |
description | ✅ | ✅ | ✅ |
pressedDescription | ❌ | ❌✅* | ❌ |
activationMsg | ❌ | ✅ | ❌ |
deactivationMsg | ❌ | ❌✅* | ❌ |
tabIndex | ✅ | ✅ | ✅ |
href | ❌ | ❌ | ✅ |
showAltText | ✅ | ✅ | ✅ |
actionCall | ❌ | ✅ | ✅ |
focusCall | ✅ | ✅ | ✅ |