File tree Expand file tree Collapse file tree
routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ const variants = {
6767export type InputProps = React . InputHTMLAttributes < HTMLInputElement > & {
6868 variant ?: keyof typeof variants ;
6969 icon ?: RenderIcon ;
70+ iconClassName ?: string ;
7071 accessory ?: React . ReactNode ;
7172 fullWidth ?: boolean ;
7273 containerClassName ?: string ;
@@ -81,6 +82,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
8182 fullWidth = true ,
8283 variant = "medium" ,
8384 icon,
85+ iconClassName,
8486 containerClassName,
8587 ...props
8688 } ,
@@ -91,7 +93,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
9193
9294 const variantContainerClassName = variants [ variant ] . container ;
9395 const inputClassName = variants [ variant ] . input ;
94- const iconClassName = variants [ variant ] . iconSize ;
96+ const variantIconClassName = variants [ variant ] . iconSize ;
9597
9698 return (
9799 < div
@@ -106,7 +108,10 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
106108 >
107109 { icon && (
108110 < div className = "pointer-events-none flex items-center" >
109- < Icon icon = { icon } className = { cn ( iconClassName , "text-text-dimmed" ) } />
111+ < Icon
112+ icon = { icon }
113+ className = { cn ( variantIconClassName , "text-text-dimmed" , iconClassName ) }
114+ />
110115 </ div >
111116 ) }
112117 < input
Original file line number Diff line number Diff line change @@ -138,8 +138,9 @@ function TaskSelector({
138138 < div className = "p-2" >
139139 < Input
140140 placeholder = "Search tasks"
141- variant = "small"
141+ variant = "secondary- small"
142142 icon = { MagnifyingGlassIcon }
143+ iconClassName = "text-text-bright"
143144 fullWidth = { true }
144145 value = { filterText }
145146 autoFocus
You can’t perform that action at this time.
0 commit comments