|
|
|
|
|
by ratww
1997 days ago
|
|
You can use the ARIA role="button" attribute [1]. You also should make it focusable using tabindex="0" and allow keyboard input, although some screen readers might be able to get around those limitations... But like another reply mentioned, you can get it all from free using a normal <button>, which isn't really hard to style even compared to a <div>, and provides it all for free... [1] https://developer.mozilla.org/en-US/docs/Web/Accessibility/A... |
|