Skip to content

Commit

Permalink
Merge pull request #537 from Lemoncode/feature/#527-Center-text-in-bu…
Browse files Browse the repository at this point in the history
…tton-component

fixed vertical text in to button component
  • Loading branch information
brauliodiez authored Nov 17, 2024
2 parents deb1613 + 87fc1f6 commit 1aa807b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const ButtonShape = forwardRef<any, ShapeProps>((props, ref) => {
/>
<Text
x={0}
y={restrictedHeight / 2 - 5}
y={(restrictedHeight - 15) / 2}
width={restrictedWidth}
height={restrictedHeight - restrictedHeight / 2 - 5}
text={text}
Expand Down

0 comments on commit 1aa807b

Please sign in to comment.