Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve link-button a11y #1133

Merged
merged 1 commit into from
Oct 4, 2023
Merged

Conversation

owi92
Copy link
Member

@owi92 owi92 commented Oct 4, 2023

There are two places where an anchor element is styled as a button.
Mdn web docs says that in addition to role=button, these also need an extra handler to be usable with the space key (which is default button behaviour and therefore expected with things that are styled as buttons).

The other part of #630 (aria-live for error messages) appears to be done already.

Closes #630

There are two places where an anchor element
is styled as a button.
[mdn web docs](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_role#accessibility_concerns) says that in addition to
`role=button`, these also need an extra handler
to be usable with the `space` key (which is default
button behaviour and therefore expected with things that
are styled as buttons).

Closes elan-ev#630
Copy link
Member

@LukasKalbertodt LukasKalbertodt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@LukasKalbertodt LukasKalbertodt merged commit 2554536 into elan-ev:master Oct 4, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ARIA roles and other annotations
2 participants