Skip to content

Commit

Permalink
chore: consistent gradient start
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz committed Dec 1, 2024
1 parent 3fca400 commit 4bbddc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/components/gradientText/GradientText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ const gradient = (type: GradientType): LinearGradientProps => {
case "yellow":
return {
colors: [rakkiYellow, rakkiYellowLight],
locations: [-0.0109, 1],
start,
end,
};
case getMapPostTextGradientType(PostCategory.Normal):
return getMapPostTextGradient(PostCategory.Normal);
Expand Down
2 changes: 1 addition & 1 deletion packages/components/gradientText/GradientText.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const gradient = (type: GradientType) => {
case "grayLight":
return `90deg, ${gradientColorLighterGray} 0%, ${gradientColorLightLavender} 100%`;
case "yellow":
return `267deg, ${rakkiYellow} -1.09%, ${rakkiYellowLight} 100%`;
return `267deg, ${rakkiYellow} 0%, ${rakkiYellowLight} 100%`;
case getMapPostTextGradientType(PostCategory.Normal):
return getMapPostTextGradientString(PostCategory.Normal);
case getMapPostTextGradientType(PostCategory.Article):
Expand Down

0 comments on commit 4bbddc3

Please sign in to comment.