From 41238e8906f4d89166afb455e5e87e4330f1c5e7 Mon Sep 17 00:00:00 2001 From: TJ Date: Wed, 26 Aug 2026 12:40:49 -0700 Subject: [PATCH] fix(site/src): use default combobox dropdown surface (#28613) Combobox dropdowns were forcing the migrated menu styling in a few places: secondary menu surfaces, surface-quaternary borders, square item highlights, tertiary selected-row highlights, and a tertiary footer hover in the workspace template dropdown. Use the shared combobox defaults instead: primary menu surfaces, `border-border-default`, padded lists so highlights do not run to the edge, rounded item highlights, and the standard secondary selected-row highlight. Remove callsite overrides that were preventing the shared defaults from applying to workspace, filter, and version dropdowns. > This PR was generated by Coder Agents on behalf of @tracyjohnsonux. (cherry picked from commit 2eb9e4fbe8b283726891406d23ea483664f1c857) --- site/src/components/Combobox/Combobox.tsx | 14 ++++++++------ site/src/components/Filter/SelectFilter.tsx | 9 ++------- .../ChangeWorkspaceVersionDialog.tsx | 6 +----- site/src/pages/WorkspacesPage/WorkspacesButton.tsx | 6 +++--- 4 files changed, 14 insertions(+), 21 deletions(-) diff --git a/site/src/components/Combobox/Combobox.tsx b/site/src/components/Combobox/Combobox.tsx index d08e56ac19c..347c4322e34 100644 --- a/site/src/components/Combobox/Combobox.tsx +++ b/site/src/components/Combobox/Combobox.tsx @@ -114,21 +114,23 @@ export const ComboboxContent = ({ - - {children} - + {children} ); }; export const ComboboxInput = CommandInput; -export const ComboboxList = CommandList; +export const ComboboxList: React.FC< + React.ComponentPropsWithRef +> = ({ className, ...props }) => { + return ; +}; export const ComboboxItem = ({ children, @@ -143,7 +145,7 @@ export const ComboboxItem = ({ return ( { setOpen(false); // Toggle behavior: selecting the same value deselects it. diff --git a/site/src/components/Filter/SelectFilter.tsx b/site/src/components/Filter/SelectFilter.tsx index 339e8aa7e83..85ff2ed974a 100644 --- a/site/src/components/Filter/SelectFilter.tsx +++ b/site/src/components/Filter/SelectFilter.tsx @@ -75,16 +75,11 @@ export const SelectFilter: FC = ({ shouldFilter={false} > {selectFilterSearch} - + {options !== undefined ? ( options.map((option) => ( = ({ = ({ key={template.id} value={template.id} keywords={[template.display_name, template.name]} - className="px-4 data-[selected=true]:bg-surface-tertiary font-normal gap-3 [&>svg:last-child]:hidden" + className="px-4 font-normal gap-3 [&>svg:last-child]:hidden" > = ({
See all templates