From 959c8008880ebb61fe3830921e60c91efd2e979e Mon Sep 17 00:00:00 2001 From: Mike van Veenhuijzen Date: Wed, 10 Apr 2024 11:44:52 +0200 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20adhere=20icon=20button=20styling?= =?UTF-8?q?=20&=20don=E2=80=99t=20act=20as=20a=20submit=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui-react/src/components/IconButton/IconButton.tsx | 2 +- .../ui-react/src/components/TextField/TextField.module.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui-react/src/components/IconButton/IconButton.tsx b/packages/ui-react/src/components/IconButton/IconButton.tsx index 14d229cb7..c03f9c622 100644 --- a/packages/ui-react/src/components/IconButton/IconButton.tsx +++ b/packages/ui-react/src/components/IconButton/IconButton.tsx @@ -12,7 +12,7 @@ type Props = ButtonHTMLAttributes & { const IconButton: React.FC = ({ children, onClick, className, ...ariaProps }: Props) => { return ( - ); diff --git a/packages/ui-react/src/components/TextField/TextField.module.scss b/packages/ui-react/src/components/TextField/TextField.module.scss index a78d12e6a..3457d7ac5 100644 --- a/packages/ui-react/src/components/TextField/TextField.module.scss +++ b/packages/ui-react/src/components/TextField/TextField.module.scss @@ -48,7 +48,7 @@ } } -.control > div { +.control > button { width: 48px; height: 48px; } From 516b3ba1e4746aad9646e8f875e14a953202db55 Mon Sep 17 00:00:00 2001 From: Mike van Veenhuijzen Date: Thu, 11 Apr 2024 11:35:57 +0200 Subject: [PATCH 2/2] chore: update snapshots for buttons --- .../CheckoutForm/__snapshots__/CheckoutForm.test.tsx.snap | 1 + .../src/components/Dialog/__snapshots__/Dialog.test.tsx.snap | 1 + .../__snapshots__/DialogBackButton.test.tsx.snap | 1 + .../__snapshots__/EditPasswordForm.test.tsx.snap | 2 ++ .../src/components/Header/__snapshots__/Header.test.tsx.snap | 2 ++ .../IconButton/__snapshots__/IconButton.test.tsx.snap | 1 + .../LanguageMenu/__snapshots__/LanguageMenu.test.tsx.snap | 1 + .../components/LoginForm/__snapshots__/LoginForm.test.tsx.snap | 1 + .../__snapshots__/ModalCloseButton.test.tsx.snap | 1 + .../PasswordField/__snapshots__/PasswordField.test.tsx.snap | 1 + .../__snapshots__/RegistrationForm.test.tsx.snap | 1 + .../components/SearchBar/__snapshots__/SearchBar.test.tsx.snap | 1 + .../src/components/Sidebar/__snapshots__/Sidebar.test.tsx.snap | 2 ++ .../src/containers/Cinema/__snapshots__/Cinema.test.tsx.snap | 1 + .../src/containers/Layout/__snapshots__/Layout.test.tsx.snap | 2 ++ 15 files changed, 19 insertions(+) diff --git a/packages/ui-react/src/components/CheckoutForm/__snapshots__/CheckoutForm.test.tsx.snap b/packages/ui-react/src/components/CheckoutForm/__snapshots__/CheckoutForm.test.tsx.snap index 2c2beb5e7..68dd32a08 100644 --- a/packages/ui-react/src/components/CheckoutForm/__snapshots__/CheckoutForm.test.tsx.snap +++ b/packages/ui-react/src/components/CheckoutForm/__snapshots__/CheckoutForm.test.tsx.snap @@ -219,6 +219,7 @@ exports[` > renders and matches snapshot 1`] = `