Closed vlamitin closed 5 years ago
<div role="button" ...> is a common way of marking elements's purpose as button for reasons of accessibility (see this discussion)
<div role="button" ...>
It's commonly used (see vim-vixen)
And we see some frameworks, that use div for their clickable elements (like material-ui)
<div role="button" ...>
is a common way of marking elements's purpose as button for reasons of accessibility (see this discussion)It's commonly used (see vim-vixen)
And we see some frameworks, that use div for their clickable elements (like material-ui)