-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
Conversation
Thanks so much for looking into this @amaust. Have you made sure this works well for all of these areas? |
@lramos15 this changes some code that you added |
@meganrogge I ran the unit tests but I did not think about double checking those. My apologies, I'll look into it ASAP. |
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.
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;
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. |
@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! |
Fixes Aria Label Showing [Object object]
closes #195661
Switches aria-label titles to tooltip titles for certain instances where options.title is a markdown string.