From 05a60dc49094b1d0f2e5b81393b827e3049b6656 Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Fri, 28 Jul 2023 19:27:11 +0200 Subject: [PATCH 1/2] Add h-padding. Add hover-focus style --- components/inputs/Button.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/inputs/Button.tsx b/components/inputs/Button.tsx index 0bf2e7d0..b3903e6e 100644 --- a/components/inputs/Button.tsx +++ b/components/inputs/Button.tsx @@ -38,7 +38,7 @@ const Button = (props: Props) => ( border-radius: 10px; background: rgba(255, 255, 255, 0.15); border: none; - padding: 12px 0; + padding: 12px; font-size: 1rem; color: white; font-style: italic; @@ -49,7 +49,10 @@ const Button = (props: Props) => ( .primary { border: 2px solid white; } - + button:hover, + button:focus { + outline: 1px solid white; + } button:first-child { margin-top: 0; } From 7626f5d08fde83a8fe862cff5850073ccc5643bb Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Fri, 28 Jul 2023 19:27:26 +0200 Subject: [PATCH 2/2] New layout for buttons --- components/forms/CreateTxForm/index.tsx | 145 ++++++++++++++++++------ 1 file changed, 113 insertions(+), 32 deletions(-) diff --git a/components/forms/CreateTxForm/index.tsx b/components/forms/CreateTxForm/index.tsx index dd4b315f..0b84234a 100644 --- a/components/forms/CreateTxForm/index.tsx +++ b/components/forms/CreateTxForm/index.tsx @@ -152,38 +152,90 @@ const CreateTxForm = ({ router, senderAddress, accountOnChain }: CreateTxFormPro onChange={({ target }) => setMemo(target.value)} /> - -