Skip to content

Commit

Permalink
fix styles for Input of type file & color
Browse files Browse the repository at this point in the history
  • Loading branch information
OsamaAbdellateef committed Aug 1, 2023
1 parent 564a458 commit 87548e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/components/src/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export const Input = forwardRef<HTMLInputElement, InputOwnProps>(
className={cn(
'flex-1',
'disabled:cursor-not-allowed',
'[&[type=file]]:border-none [&[type=file]]:p-0',
'[&[type=color]]:ml-0 [&[type=color]]:border-none [&[type=color]]:bg-transparent [&[type=color]]:p-0',
classNames.input,
className
)}
Expand Down
1 change: 1 addition & 0 deletions themes/theme-core/src/components/Input.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const Input: ThemeComponent<'Input'> = {
inputBox,
inputHeight,
inputSpacing,
'[&[type=file]]:leading-[16px]',
'leading-[22px]',
'focus:outline-outline-focus -outline-offset-1 focus:outline focus:outline-2',
'disabled:bg-bg-disabled disabled:border-border-disabled disabled:text-text-disabled',
Expand Down

0 comments on commit 87548e1

Please sign in to comment.