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

Fixes Aria Label Showing [Object object] #195929

Merged
merged 3 commits into from
Oct 19, 2023

Conversation

amaust
Copy link
Contributor

@amaust amaust commented Oct 18, 2023

closes #195661
Switches aria-label titles to tooltip titles for certain instances where options.title is a markdown string.

@meganrogge
Copy link
Contributor

Thanks so much for looking into this @amaust. Have you made sure this works well for all of these areas?

Screenshot 2023-10-18 at 12 07 43 PM

@meganrogge
Copy link
Contributor

@lramos15 this changes some code that you added

@amaust
Copy link
Contributor Author

amaust commented Oct 18, 2023

@meganrogge I ran the unit tests but I did not think about double checking those. My apologies, I'll look into it ASAP.

Copy link
Member

@lramos15 lramos15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually isn't quite the same and breaks some of the cases which this was intended to fix.

For example if you modify a file and it's under source control the aria label will read out

~/path/test.md • Modified

but the label will just be test.md. Hiding some of that information from screen reader users. I will leave it up to @meganrogge to decide what should be done for terminal. My suggestion would be that maybe typeof options.title === 'string' ? options.title : label;

@amaust
Copy link
Contributor Author

amaust commented Oct 18, 2023

Sorry about that @lramos15, I was thinking about trying what you suggested as soon as I began looking at the other cases. Lemme know how you wanna proceed.

@amaust
Copy link
Contributor Author

amaust commented Oct 19, 2023

@lramos15 I did go ahead and made the fix you suggested. I also went and verified the case you specified and it worked as expected. Let me know if any other changes need to be made!

@VSCodeTriageBot VSCodeTriageBot added this to the October 2023 milestone Oct 19, 2023
@meganrogge meganrogge merged commit b571a38 into microsoft:main Oct 19, 2023
6 checks passed
Alex0007 pushed a commit to Alex0007/vscode that referenced this pull request Oct 26, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aria label [object Object], terminal tabs
5 participants