From 4df88c6664c2e24d673bd3b4f8d568d5a9f0605f Mon Sep 17 00:00:00 2001 From: Jiri Kolarik Date: Fri, 4 Feb 2022 19:42:35 +0100 Subject: [PATCH] fix(LinkButton): text aligment --- package-lock.json | 2 +- package.json | 2 +- src/link/link-button.tsx | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index d28a2e1..bb62f0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "@storybook/manager-webpack5": "^6.4.17", "@storybook/node-logger": "^6.4.17", "@storybook/preset-create-react-app": "^4.0.0", - "@storybook/react": "^6.4.17", + "@storybook/react": "^6.4.18", "@testing-library/jest-dom": "^5.16.1", "@testing-library/react": "^12.1.2", "@testing-library/user-event": "^13.5.0", diff --git a/package.json b/package.json index 9cbec03..68fd428 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "@storybook/manager-webpack5": "^6.4.17", "@storybook/node-logger": "^6.4.17", "@storybook/preset-create-react-app": "^4.0.0", - "@storybook/react": "^6.4.17", + "@storybook/react": "^6.4.18", "@testing-library/jest-dom": "^5.16.1", "@testing-library/react": "^12.1.2", "@testing-library/user-event": "^13.5.0", diff --git a/src/link/link-button.tsx b/src/link/link-button.tsx index 270157f..8913140 100644 --- a/src/link/link-button.tsx +++ b/src/link/link-button.tsx @@ -100,6 +100,7 @@ export default function LinkButton(props: PropsWithChildren) { display: "inline-flex", flexDirection: "row", alignItems: "center", + justifyContent: "center", transitionTimingFunction: "cubic-bezier(0, 0, 1, 1)", transitionDuration: "200ms", transitionProperty: "background",