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

Address some screen reader issues #1134

Merged
merged 6 commits into from
Oct 5, 2023

Conversation

owi92
Copy link
Member

@owi92 owi92 commented Oct 4, 2023

Addresses some of the issues outlined in #1074
Also fixes some complaints made by the wave plugin.
I have left a comment over there regarding the ones not included here.

These already have tooltips that are read by
screenreaders, but without explicit labels
the wave plugin still complains. Might be
relevant for SEO or sth (but honestly, I doubt that).
Previously, certain form inputs would always be labelled
by their error message, which only exists if there's an
error (big surprise, I know). This would cause the wave
plugin to show an error like "broken aria reference" if
there were no errors.
Instead of announcing that the recording has started,
I think it's ok to announce the updated description of the
record-button, which should be focused when pressed, instead.
With this, screenreaders will tell the user that
they're going to share the selected media instead
of just reading the tile's label.

Also unifies some translation names.
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.

Very nice work! Also thanks for commentnig with additional information on the issue.

The code looks good and most things also work in my Ubuntu screen reader. However:

However, I think we can easily blame that on the Ubuntu screen reader implementation. if these commits improve the situation for the macOS screen reader (which most certainly is used a whole lot more!) then it's an improvement.

With that argument, I will just merge this without waiting for more reviewers with different screen readers, as this clearly improves quite a few things and is unlikely to make things worse. A proper accessibility review is planned anyway.

@LukasKalbertodt LukasKalbertodt merged commit b48c0c3 into elan-ev:master Oct 5, 2023
2 checks passed
@owi92
Copy link
Member Author

owi92 commented Oct 5, 2023

"Make aria-labelledby prop state dependent" doesn't make a difference for me. The label was already announced correctly before.

Same here, this was just about appeasing the wave plugin.

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.

None yet

2 participants