-
Notifications
You must be signed in to change notification settings - Fork 16
Home
Alaric.Baraou edited this page Feb 12, 2021
·
5 revisions
A11y Roles differences | ||||
---|---|---|---|---|
Roles | ||||
content | button | togglebutton | link | |
cursor on hover | default | pointer | pointer | pointer |
Usable states | ||||
content | button | togglebutton | link | |
hover | ✅ | ✅ | ✅ | ✅ |
focus | ✅(with tabIndex) | ✅ | ✅ | ✅ |
pressed | ❌ | ❌ | ✅ | ❌ |
Usable props | ||||
content | button | togglebutton | link | |
role | ✅ | ✅ | ✅ | ✅ |
description | ✅ | ✅ | ✅ | ✅ |
activationMsg | ❌ | ✅ | ✅ | ❌ |
deactivationMsg | ❌ | ❌ | ✅ | ❌ |
tabIndex | ✅ | ✅ | ✅ | ✅ |
href | ❌ | ❌ | ❌ | ✅ |
showAltText | ✅ | ✅ | ✅ | ✅ |
actionCall | ❌ | ✅ | ✅ | ✅ |
focusCall | ✅ | ✅ | ✅ | ✅ |