Microsoft/vscode

Make dropdown control looks more consistent with other parts

Open

#224,780 创建于 2024年8月5日

在 GitHub 查看
 (9 评论) (1 反应) (1 负责人)TypeScript (10,221 fork)batch import
dropdownfeature-requesthelp wantedux

仓库指标

Star
 (74,848 star)
PR 合并指标
 (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)

描述

image Control like this uses native select control. I think there are several drawbacks:

  1. No smooth scrolling
  2. No shadow
  3. It's hard to change its appearance or extend its function in the future. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#styling_with_css
  4. The separator is of the same height as other options and not enough width (since it's just a disabled option with text ----). It should be like in the normal menu, extending to both sides and having a smaller height.

Therefore I suggest using a custom control instead.

贡献者指南