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

Accessibility: Impose a limit on the length of alt text #12268

Open
ZoeBijl opened this issue Oct 31, 2019 · 5 comments
Open

Accessibility: Impose a limit on the length of alt text #12268

ZoeBijl opened this issue Oct 31, 2019 · 5 comments
Labels
accessibility Screen readers and related suggestion Feature suggestion

Comments

@ZoeBijl
Copy link

ZoeBijl commented Oct 31, 2019

Pitch

Set and communicate a character limit for alt text. The current limit of 1500 characters is too long. Twitter has a more sensible limit of 420 characters.

Motivation

420 characters is a lot of text. Screen readers will read the entire alt text in one go. Meaning users can’t navigate it word by word. If you need more than 420 characters you should consider a transcript.

This entire comment is exactly 420 characters.

@ZoeBijl ZoeBijl changed the title Accessibility Impose a limit on the length of alt text Accessibility: Impose a limit on the length of alt text Oct 31, 2019
@elaine-jackson
Copy link

It's not like all users are using the full 1500 characters for their alt text. I don't think we should lower the limit as it might be needed for a select few graphics. Also if we impose a software limit on the number of characters and prevent any more from being shared, what happens to older images using more than 420 characters for alt? Are they removed from federation for breaking protocol? Will the remaining characters simply not show up. If so this is a breaking changes that breaks old content.

@ZoeBijl
Copy link
Author

ZoeBijl commented Nov 21, 2019

The point is that any alt text longer than say 420 characters is unusable by most people that need it.

@Gargron
Copy link
Member

Gargron commented Dec 30, 2019

The current limit of 1500 characters is too long

#11658

@elaine-jackson
Copy link

@ZoeBijl Instance owners can adjust the limits, Mastodon Project adjusting an arbitrary limit would have little effect unless all instance owners accept the change.

@mgifford
Copy link

mgifford commented Nov 10, 2022

I don' t think there are too many users entering 1500 character alt text. Still, I think that 420 characters is totally reasonable as upper limit. If it is much longer than that then probably other strategies would be better.

The W3C has some info on this https://www.w3.org/WAI/tutorials/images/complex/

@vmstan vmstan added accessibility Screen readers and related suggestion Feature suggestion labels Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Screen readers and related suggestion Feature suggestion
Projects
None yet
Development

No branches or pull requests

5 participants