-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix(core): remove title attributes, add alt attributes #1349
Conversation
Oke, so without the |
I'm not sure I understand. The idea of icons (symbols/pictograms) is to convey meaning. The textual description exists for those who can't access the visual; I moved those to the images' If the symbols aren't clear enough, which is why I flagged the Git logo, we shouldn't use them. One solution is to find better (more obvious, less ambiguous) symbols, another is to use link text. |
and a third is to show descriptive information when hovering those symbols or text. and the benefit of this approach is, that it can be combined with any of the other two! |
The HTML spec itself says that use of Using both attributes in parallel has its own problems, not sure if those are discussed in the articles I linked or in resources they, in turn, point to. So no, I don't think that keeping |
I was suggesting that they both have the same content, which is tolerated by the A11Y guys as title doesn't hide any extra information. See quote below from the page you linked
|
I suggest to have some information displayed when hovering over the icons. It doesn't have to be implemented using the title attribute, that why I asked for alternatives in my first comment.
The link you posted says: "Relying on the title attribute is currently discouraged" (emphasis added by me). We are not relying on the use of the title attribute. The "use of
Given that you have not listed any negatives but only mentioned that there are some, we can not comment on this. Just for reference, a couple of examples from other user interfaces: Gitlab: Nextcloud: Github: Sharepoint: |
@gythaogg Please let me know which changes you want me to make via the review tool. I can't/mustn't engage in lengthy discussions in issues and PRs for the time being. Thx. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title
attribute here serves a purpose (tooltip) and hence it should remain. Please leave title
with the same value as alt
(as suggested by the a11yproject).
If you must use title on images, keep it the same as the alt.
...
In cases where a title attribute is provided, it should have the same value as the alt.
3692e88
to
db02509
Compare
Add missing `alt` attributes to images in footer template using values identical to those of the `title` attributes of the links enclosing the images (as recommended by a11yproject.com when both attributes are present).
db02509
to
2067c99
Compare
Commit updated to only add Commit message updated to reflect change, additionally replaced mentions of "icons" with "images" for more accuracy re: affected elements. CC type in subject changed to |
Remove (as per the HTML spec) discouraged
title
attributes from links in footer template and instead use their values for missing (also per the HTML spec)alt
attributes on images they enclose.Solves one of the issues described in #1343.