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] Hovertext for image descriptions is insufficient #8237
Comments
we'll expand on this idea a bit since sometimes when we point the issue out people ask us for details, but basically - hover text is hard to invidually style for people who need custom stylings for their browser (for example, overriding fonts, making text larger, etc. hover text is also very difficult (almost impossible?) to view without a mouse. a potential nice way to handle this could be a "view image description(s)" button underneath a post, that can be optional (if turned off, the image descriptions just are written beneath the images). ideally the image description text would be very similar to the post's general text (same font and size and everything). |
This seems like a pretty reasonable request to me, just wondering about implementation - I wouldn't want to see this become "image description is always visible to all users". @Fidgetcetera what do you mean by 'beneath'? Do you mean on a new line below the image, or rendered on a layer below the image so it's not visible? Is the proposal that the button would basically be a toggle to show the description in place of the image? Could it (additionally?) be a user setting so that they always see the description by default rather than the image? |
When you click an image, currently, you get a modal with the image displayed at full size. How about simply displaying the image description there as well? |
@hughrun |
@LogicalDash that might be a bit better, but an option to view it just alongside the normal post text would also be great. |
Multi-image posts can (should) have a different description for each image, so it would either need to be a description under each image or multiple descriptions at the end of the post something like |
FWIW in the Android client I use (Subway Tooter) the descriptions are always shown under the image sand it really isn't intrusive, and in fact a good reminder to add them, and a good way of normalising the practice. |
Tumblr also showed image descriptions in their lightbox. Mastodon should consider doing the same. |
As I noted in the pull request, it'd be fairly easy to have the alt text appear under the image in the lightbox. The PR shouldn't be merged as- someone who understands the code better should have the image scale down to make room for the alt text. |
It seems a bit odd to me that people should have to click on an image before they have an idea of what it is? |
Any updates on this? Is there something people can help with? |
@ZoeBijl the linked pull needs to address the feedback from scottohara: #9754 (review), as well as visual design improvements. From a broader perspective, shouldn't it be the responsibility of the user agent to provide an accessible, customizable display of title text? Even mobile browsers have title text display these days, I don't think it's unreasonable to ask desktop browsers to improve their accessibility in this area. |
Do you have an example of that? In Safari on iOS 13.2 I only see this when I long press on the image. And then it only works on images in the dialog/carousel view. On desktops it’s only available if you’re using a mouse. So keyboard and touch users are out of luck. This short note on the
The browser landscape being what it is, I think it makes a lot more sense to make our software more usable rather than to wait for user agents to do so. This is an issue that can be fixed with a few lines of HTML and CSS. Why wouldn’t we? |
I don't know enough about Mastodon's frontend code or modern accessible HTML to be able to address the comments on that PR, but I'd be happy to work with or hand it off to someone who does. For what it's worth, my mobile browser (Chrome on a Pixel 2) doesn't even show alt text when long pressing on an image- there's no way I know of to see alt text without opening the HTML or using an app. Mastodon just added that big, fancy new UI for composing alt text- what good is it if we don't let people see it? |
Alt text does plenty of good for accessibility and SEO even when it isn't visible, as long as it's available to screen readers and search engine crawlers in the source. Other posts in this thread make a good case for making the text more available visually as well, but it's a separate issue. In case it helps, here's an article on alt text best practices that's a little friendlier to read than the spec. |
Hi, |
I would love to have this feature in Mastodon as well. It's great that we can already add alt text to images when we compose a toot. But a lot of users don't know about their importance for accessibility, especially for screen reader users. Furthermore, everyone will benefit if you can a) see right away if an image has alt text and b) view the alt text by activating a button. For people with sight, the alt text can direct your attention to details of the image you overlooked or did not pay attention to. So, if I can help in any way in implementing this, please tell me! 😊 |
New to Mastodon and totally new to its codebase, but It occurs to me that there may be a couple things worth discussing here before someone (not likely me!) begins to code or mock up an example of how this feature might be implemented.
Not sure where to start with these steps, but thought perhaps that starting off with some discussion of what the desired outcomes are along with how those outcomes work (or don't) with pre-existing features and design trends in Mastodon would be worthwhile. |
There are more things to consider IMHO
so i don't know how and when the new version will be ready, but it will of course affect this topic as well. |
Source
The text was updated successfully, but these errors were encountered: