3 ms·
aria roles solve that problem easily for screen readers, so you can use buttons for navigation and text links for actions without big issues
by agos 3y ago
aria roles solve that problem easily for screen readers, so you can use buttons for navigation and text links for actions without big issues
- polydevil 3y agoNo, they don't. Aria roles are not for making one tag to work like another. (Otherwise what is the point of having different tags with different semantics?). Aria is for making inaccessible html more accessible. Links can not be disabled (buttons can) - so they dont rely on js to work; Buttons rely on js (except for submitting the form). There is no way to interchange one with another without sacrificing usability.