Skip to content

Commit

Permalink
fix(core): fix placeholder positioning for picklist custom form field (
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-alexsaiannyi authored Sep 6, 2024
1 parent ad601e1 commit 33e133d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/flat-cars-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bigcommerce/catalyst-core": patch
---

fix placeholder positioning for picklist custom form field
2 changes: 1 addition & 1 deletion core/components/ui/form/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const Select = forwardRef<ElementRef<typeof SelectPrimitive.Trigger>, Props>(
<SelectPrimitive.Trigger
aria-label={label}
className={cn(
'group flex h-12 w-full items-center justify-between border-2 border-gray-200 px-4 py-3 text-base text-black hover:border-primary focus-visible:border-primary focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-primary/20 disabled:bg-gray-100 disabled:hover:border-gray-200 data-[placeholder]:text-gray-500',
'group relative flex h-12 w-full items-center justify-between border-2 border-gray-200 px-4 py-3 text-base text-black hover:border-primary focus-visible:border-primary focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-primary/20 disabled:bg-gray-100 disabled:hover:border-gray-200 data-[placeholder]:text-gray-500',
error &&
'border-error-secondary hover:border-error focus-visible:border-error-secondary focus-visible:ring-error-secondary/20 disabled:border-gray-200',
)}
Expand Down

0 comments on commit 33e133d

Please sign in to comment.