An accessible "button" usurper, for those cases where you are intent on not using a <button>
.
Establishes the correct role, tabindex, and key/mouse interaction if interactive.
Buttons activate on click, space and enter.
Use sparingly.
If you can use the default <button>
– possible more often than not – just do so.
@see https://www.w3.org/TR/wai-aria-practices-1.1/#button
@see https://www.w3.org/TR/wai-aria-practices-1.1/examples/button/button.html