Skip to content

Commit

Permalink
fix: color button in color input not vertically centered
Browse files Browse the repository at this point in the history
  • Loading branch information
sapkra committed Apr 17, 2024
1 parent 9394028 commit 000ea63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/color-input/ColorInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const ColorInput = withFragment(forwardRef<HTMLInputElement, ColorInputPr
showFallback
fallback={<input type='color' className="w-full h-full opacity-0 cursor-pointer" onChange={(e) => setValue(e.currentTarget.value)} />}
style={{ backgroundColor: value }}
classNames={{ base: 'shrink-0', fallback: 'w-full h-full' }}
classNames={{ base: 'shrink-0 self-center -mb-0.5', fallback: 'w-full h-full' }}
/>
)}
/>
Expand Down

0 comments on commit 000ea63

Please sign in to comment.