Skip to content

Commit 1aa807b

Browse files
authored
Merge pull request #537 from Lemoncode/feature/#527-Center-text-in-button-component
fixed vertical text in to button component
2 parents deb1613 + 87fc1f6 commit 1aa807b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/components/mock-components/front-components/button-shape.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const ButtonShape = forwardRef<any, ShapeProps>((props, ref) => {
6868
/>
6969
<Text
7070
x={0}
71-
y={restrictedHeight / 2 - 5}
71+
y={(restrictedHeight - 15) / 2}
7272
width={restrictedWidth}
7373
height={restrictedHeight - restrictedHeight / 2 - 5}
7474
text={text}

0 commit comments

Comments
 (0)