Microsoft/vscode

Make dropdown control looks more consistent with other parts

オープン

#224,780 opened on 2024/08/05

 (9 件のコメント) (1 件のリアクション) (1 人の担当者)TypeScript (39,847 件のフォーク)batch import
dropdownfeature-requesthelp wantedux

Repository metrics

Stars
 (184,936 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド