Skip to content

Commit

Permalink
Fix focus outline when clicking away from Select/ComboBox components (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
psirenny authored Aug 27, 2024
1 parent a88f395 commit 348c05d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-students-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spear-ai/ui": patch
---

Fixed focus outline on Select/ComboBox components when clicking away from Popover.
2 changes: 1 addition & 1 deletion packages/ui/src/components/combo-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const ComboBox = forwardRef<
[onSelectionChange, setSelectedKey],
);

const mergedClassName = cx("group focus:outline-none", className);
const mergedClassName = cx("group outline-none", className);

return (
<ComboBoxPrimitive
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const Select = forwardRef<
[onSelectionChange, setSelectedKey],
);

const mergedClassName = cx("group w-full focus:outline-none", className);
const mergedClassName = cx("group w-full outline-none", className);

return (
<SelectPrimitive
Expand Down

0 comments on commit 348c05d

Please sign in to comment.