Skip to content

Commit 64dc441

Browse files
authored
Merge pull request #1198 from Rajesh-Nagarajan-11/fill-prop-icon
Add fill Prop Support to GithubIcon
2 parents 2047d24 + 546c79a commit 64dc441

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/icons/Github/GithubIcon.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
interface GithubIconProps {
22
height?: string | number;
33
width?: string | number;
4+
fill?: string;
45
className?: string;
56
}
67

78
export default function GithubIcon({
89
height = '1.45rem',
910
width = '1.45rem',
11+
fill = 'currentColor',
1012
className
1113
}: GithubIconProps) {
1214
return (
@@ -15,10 +17,10 @@ export default function GithubIcon({
1517
width={width}
1618
className={className}
1719
xmlns="http://www.w3.org/2000/svg"
18-
viewBox="0 0 400 400"
20+
viewBox="60 60 280 280"
1921
>
2022
<path
21-
fill="currentColor"
23+
fill={fill}
2224
fillRule="evenodd"
2325
clipRule="evenodd"
2426
d="M203.9,60c-75.6,0-137,61.3-137,137c0,60.5,39.2,111.9,93.7,130c6.8,1.3,9.3-3,9.3-6.6c0-3.3-0.1-11.9-0.2-23.3

0 commit comments

Comments
 (0)