Skip to main content
added 86 characters in body
Source Link
Pete TNT
  • 8.4k
  • 13
  • 11

As they are more buttons than links, adding role="button" ARIA-attribute would make more sense than making them anchors (if making them regular <button>-elements is not an option for whatever reasons :))

The button role should be used for clickable elements that trigger a response when activated by the user. On its own, role="button" can make any element (e.g. <p>, <span> or <div>) appear as a button control to a screen reader. Additionally, this role can be used in combination with the aria-pressed attribute in order to create toggle buttons.

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_button_role

This also fixes the issue with Vimium:

Vimium hotlink

(This obviously applies to other parts of SO that should/could be more accessible too)

As they are more buttons than links, adding role="button" ARIA-attribute would make more sense than making them anchors (if making them regular <button>-elements is not an option for whatever reasons :))

The button role should be used for clickable elements that trigger a response when activated by the user. On its own, role="button" can make any element (e.g. <p>, <span> or <div>) appear as a button control to a screen reader. Additionally, this role can be used in combination with the aria-pressed attribute in order to create toggle buttons.

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_button_role

This also fixes the issue with Vimium:

Vimium hotlink

As they are more buttons than links, adding role="button" ARIA-attribute would make more sense than making them anchors (if making them regular <button>-elements is not an option for whatever reasons :))

The button role should be used for clickable elements that trigger a response when activated by the user. On its own, role="button" can make any element (e.g. <p>, <span> or <div>) appear as a button control to a screen reader. Additionally, this role can be used in combination with the aria-pressed attribute in order to create toggle buttons.

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_button_role

This also fixes the issue with Vimium:

Vimium hotlink

(This obviously applies to other parts of SO that should/could be more accessible too)

Source Link
Pete TNT
  • 8.4k
  • 13
  • 11

As they are more buttons than links, adding role="button" ARIA-attribute would make more sense than making them anchors (if making them regular <button>-elements is not an option for whatever reasons :))

The button role should be used for clickable elements that trigger a response when activated by the user. On its own, role="button" can make any element (e.g. <p>, <span> or <div>) appear as a button control to a screen reader. Additionally, this role can be used in combination with the aria-pressed attribute in order to create toggle buttons.

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_button_role

This also fixes the issue with Vimium:

Vimium hotlink