-
-
Notifications
You must be signed in to change notification settings - Fork 777
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
img logo should have an empty alt - accessibility #2209
Comments
Hello @Llune |
Hi, The logo is a decorative image in this context. The alt attribute will be read by a screenreader and it should not be in this context. Thus it should be empty |
Yes, my question was more whether this is a theoretical issue, or whether there is an actual screenreader causing a problem with ⊚. What is the behaviour in your screenreader? Having Unicode alternatives to images helps when images are not displayed, e.g. due to a preference, network problem, or when using a text browser. Example in a terminal (the one I have there does not show all Unicode signs correctly, but that gives an idea): |
It seems to me that it is not a good idea to use empty alt attributes. Instead, it is probably better to declare things correctly; in this case, something like |
The Unicode symbol is read by VoiceOver (macOS) and by all the screenreaders actually. You're using the alt attribute in a way it should not be used. It's primary function is to provide information when needed to blind and low sighted people not style the display in a text browser. But I'm not going to argue on that since you can also just hide the |
Let's go for For the record, alt is for all the cases when the image is not displayed, not only for screenreaders - which are important but form only a subset of the usecases. C.f. https://www.w3.org/TR/html52/semantics-embedded-content.html#examples-of-scenarios-where-users-benefit-from-text-alternatives-for-images To quote the HTML5 specification:
But in this specific case, the argument is that the image is not important because the text FreshRSS is just next to it and therefore a
Since the layout does not change much with or without the logo, |
Fixed in #2219 |
header.phtml
The alternative must be empty here.
The text was updated successfully, but these errors were encountered: