Closed akordowski closed 1 day ago
@akordowski Thank you for raising this issue! I'll get this triaged for review :sparkles: Our team will provide feedback regarding the best next steps for this issue - thanks for your patience! π
Hi @akordowskiβmany thanks for offering to open a PR for this and for opening an issue first.
To your first point: you're correct that this is a discrepancy. Did you run a script to determine how many times one or the other occurs? I'm not aware that this causes any problems with the end user experience with the docs, but in principle, I have no problem opening that up to you to contribute. However, please see my points below:
It'd be ideal if you could limit your changes to different sections of the content at a time rather than all at once, to limit the risks of merge conflicts on a large scale. That is, if you could open multiple PRs.
To your second point, this isn't necessarily a discrepancy (see https://docs.github.com/en/contributing/writing-for-github-docs/using-markdown-and-liquid-in-github-docs#octicons). So I'd prefer to limit any changes to the positioning of **
(boldface)
If all this sounds OK, I'm happy to open it to you to contribute.
@subatoi Thank you for your response.
Did you run a script to determine how many times one or the other occurs?
No, I did a simple text search.
I'm not aware that this causes any problems with the end user experience with the docs
No, it does not and mostly users may not notice it at all π But IMHO a documentation should use a consistent style.
That is, if you could open multiple PRs.
No problem.
To your second point, this isn't necessarily a discrepancy
There are only 22 results of using the aria-label="..."
notation, mostly the aria-hidden="true"
notation is used. That shows me that the other notation is prefered and that it is not that important to provide a icons description text for text readers. So if it is OK for the team I could provide changes for that as well.
@akordowski No problem, thank you for your help! We really appreciate your contributions.
There are only 22 results of using the aria-label="..." notation, mostly the aria-hidden="true" notation is used. That shows me that the other notation is prefered and that it is not that important to provide a icons description text for text readers. So if it is OK for the team I could provide changes for that as well.
I think the bigger picture is that we want to make things as accessible as possible for screen readers, but I'm happy to loop in @nguyenalex836 who can liaise internally with relevant stakeholders and decide on the best way forward for that particular point.
If you prefer to wait for the outcome of Alex's research into that before going ahead with any changes, that's fine ... or else if you prefer, you're welcome to start opening PRs now that are limited to changing the placement of **
characters. Just let me know what you prefer. Many thanks!
@subatoi As requested I provided 4 PRs for the changes addressed in this issue.
If you prefer to wait for the outcome of Alex's research
Yes, of course.
I think the bigger picture is that we want to make things as accessible as possible for screen readers
If this is the case then it would made sense to provide a aria-label="..."
description for all octicons.
@subatoi As requested I provided 4 PRs for the changes addressed in this issue.
That's great! We'll review those as soon as we can. Thank you so much!
If this is the case then it would made sense to provide a aria-label="..." description for all octicons.
I would agree. I'll let @nguyenalex836 follow up on this point and we'll come back to you separately π
@akordowski @subatoi Thank you both for working on those initial PRs! β¨
I would agree. I'll let @nguyenalex836 follow up on this point and we'll come back to you separately π
I'll be reaching out to our SME teams for guidance on this π stay tuned!
Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert :eyes:
@akordowski Hello! π Our SMEs responded with the following when asked about inconsistency regarding our usage of aria-label="..."
and aria-hidden="true"
notation -
This is for accessibility.
- We add a label to the octicon ONLY when ithe UI has a symbol and no text. If there was no label then the screen reader would read nothing.
- If the octicon is just there to supplement a text label, then we hide the octicon from screen readers. They don't need to hear the field label read out twice.
Given the above, I'll go ahead and close this issue as completed since all the linked PRs have been merged π Thank you again for all of your work on this front! β¨
@nguyenalex836 Thanks for the response. But there are also cases where there is an icon AND text, as you can see below:
For such cases it would make sense to replace the aria-label
with aria-hidden="true". What do you think?
@akordowski No problem at all! Let me check with our SMEs on that scenario, I'll return with more info soon π
@akordowski Our team agrees with you! π
For such cases it would make sense to replace the aria-label with aria-hidden="true". What do you think?
Feel free to open PRs for this whenever you have time - thank you! β¨
@nguyenalex836 Thank you, will do tomorrow.
Code of Conduct
What article on docs.github.com is affected?
Multiple articles.
What part(s) of the article would you like to see updated?
I noticed that the formatting of text with octicons is in the docs inconsistent:
EDIT: There is also the usage of
aria-label
instead ofaria-hidden="true"
:The formatting should be unified to:
Additional information
I could provide a PR to fix this issues.