Skip to content
New issue

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

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

Already on GitHub? # to your account

Prevent next/previous arrows from being announced by screen readers #37

Merged
merged 3 commits into from
Dec 22, 2023

Conversation

trymebytes
Copy link
Contributor

@trymebytes trymebytes commented Dec 11, 2023

Fixes #34 and #32

@joedolson
Copy link

I hope that this is just poorly titled; this should be preventing the next/previous arrows from being announced, not the buttons. I looked at the code, but that diff isn't exactly helpful.

@trymebytes trymebytes changed the title Prevent next/previous buttons from being announced by screen readers Prevent next/previous arrows from being announced by screen readers Dec 19, 2023
@trymebytes
Copy link
Contributor Author

@joedolson thanks for catching that, I have edited the title. The diff here is a compiled version of the js and css. I tested and found out that the arrows were still being read out but I have added another fix in this PR which solves it.
To see the file changes in the source(uncompiled) file, follow kamranahmedse/driver.js@fe8ad69

@trymebytes trymebytes requested a review from akirk December 19, 2023 17:18
@akirk
Copy link
Member

akirk commented Dec 22, 2023

I am not sure the PR is doing what it says. When I use Voiceover on macOS it says "Next right arrow", should it just say "Next"?

Screenshot 2023-12-22 at 12 18 38

Copy link
Member

@akirk akirk left a comment

Choose a reason for hiding this comment

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

Apologies, my local GlotPress snuck in its driver.js version without the fix. When I deactivate it, it works as proposed:

Screenshot 2023-12-22 at 12 29 41

@trymebytes trymebytes merged commit 0836c62 into trunk Dec 22, 2023
14 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessibility: Hide left and right arrows from screen readers
3 participants