@@ -18,7 +18,7 @@ export const UIIcon = createIcon({
1818> ;
1919
2020const iconStyle = tva ( {
21- base : 'text-typography-950 fill-none pointer-events-none' ,
21+ base : 'text-typography-950 fill-none stroke-current pointer-events-none' ,
2222 variants : {
2323 size : {
2424 '2xs' : 'h-3 w-3' ,
@@ -38,7 +38,7 @@ cssInterop(UIIcon, {
3838 height : true ,
3939 width : true ,
4040 fill : true ,
41- color : 'classNameColor' ,
41+ color : true ,
4242 stroke : true ,
4343 } ,
4444 } ,
@@ -50,11 +50,17 @@ type IIConProps = IPrimitiveIcon &
5050
5151const Icon = React . forwardRef < React . ComponentRef < typeof UIIcon > , IIConProps > (
5252 function Icon ( { size = 'md' , className, ...props } , ref ) {
53+ const iconProps = {
54+ fill : 'none' ,
55+ stroke : 'currentColor' ,
56+ ...props ,
57+ } ;
58+
5359 if ( typeof size === 'number' ) {
5460 return (
5561 < UIIcon
5662 ref = { ref }
57- { ...props }
63+ { ...iconProps }
5864 className = { iconStyle ( { class : className } ) }
5965 size = { size }
6066 />
@@ -66,15 +72,15 @@ const Icon = React.forwardRef<React.ComponentRef<typeof UIIcon>, IIConProps>(
6672 return (
6773 < UIIcon
6874 ref = { ref }
69- { ...props }
75+ { ...iconProps }
7076 className = { iconStyle ( { class : className } ) }
7177 />
7278 ) ;
7379 }
7480 return (
7581 < UIIcon
7682 ref = { ref }
77- { ...props }
83+ { ...iconProps }
7884 className = { iconStyle ( { size, class : className } ) }
7985 />
8086 ) ;
@@ -103,10 +109,16 @@ const createIconUI = ({ ...props }: ParameterTypes) => {
103109 React . ComponentPropsWithoutRef < typeof UIIconCreateIcon > ,
104110 ref
105111 ) {
112+ const iconProps = {
113+ fill : 'none' ,
114+ stroke : 'currentColor' ,
115+ ...inComingProps ,
116+ } ;
117+
106118 return (
107119 < UIIconCreateIcon
108120 ref = { ref }
109- { ...inComingProps }
121+ { ...iconProps }
110122 className = { iconStyle ( { size, class : className } ) }
111123 />
112124 ) ;
0 commit comments