vscode: Dropdown/Select elements are missing 'title' attribute of current selection

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.87.0
  • OS Version: ubuntu

Steps to Reproduce:

  1. open output view
  2. toggle developer tools
  3. inspect select output view channels dropdown webElement

About this issue

  • Original URL
  • State: open
  • Created 4 months ago
  • Reactions: 6
  • Comments: 18 (6 by maintainers)

Most upvoted comments

A title attribute should not be added to the select elements. Having a title attribute will cause a native hover to show. We however use custom hovers. If this is just about testing, we should not be adding anything that will influence UI…

Since moving to title attribute we changed our tests to use the aria-label instead of title, however, it doesn’t always make sense to have the aria-label where a hover exists. So we could also benefit from another solution. Currently, we set a custom-hover attribute on the HTML element when we setup a custom hover for a dom element. One idea could be instead of setting the attribute to true, we could set it to the hover text which is similar to how the title attribute works. But we should only do this for simple hovers (do not do this if the hover has a markdown string).

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!