Microsoft/vscode
View on GitHubMake dropdown control looks more consistent with other parts
Open
#224,780 opened on Aug 5, 2024
dropdownfeature-requesthelp wantedux
Repository metrics
- Stars
- (74,848 stars)
- PR merge metrics
- (Avg merge 11h 43m) (1,000 merged PRs in 30d)
Description
Control like this uses native select control. I think there are several drawbacks:
- No smooth scrolling
- No shadow
- 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
- 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.