From c7dbd9f6302ecf62cec846f5b56dd9d44f021bd7 Mon Sep 17 00:00:00 2001 From: Bryan Phelps Date: Thu, 10 Feb 2022 00:14:55 +0000 Subject: [PATCH 1/2] fix: Add spacing in login page; add story --- site/components/SignIn/SignInForm.stories.tsx | 16 ++++++++++ site/components/SignIn/SignInForm.tsx | 32 +++---------------- 2 files changed, 20 insertions(+), 28 deletions(-) create mode 100644 site/components/SignIn/SignInForm.stories.tsx diff --git a/site/components/SignIn/SignInForm.stories.tsx b/site/components/SignIn/SignInForm.stories.tsx new file mode 100644 index 0000000000000..5556cf38b6b6d --- /dev/null +++ b/site/components/SignIn/SignInForm.stories.tsx @@ -0,0 +1,16 @@ +import { Story } from "@storybook/react" +import React from "react" +import { SignInForm, SignInProps } from "./SignInForm" + +export default { + title: "SignIn/SignInForm", + component: SignInForm, + argTypes: { + loginHandler: { action: "Login" }, + }, +} + +const Template: Story = (args) => + +export const Example = Template.bind({}) +Example.args = {} diff --git a/site/components/SignIn/SignInForm.tsx b/site/components/SignIn/SignInForm.tsx index b0fefdc45da41..78b98f1347e39 100644 --- a/site/components/SignIn/SignInForm.tsx +++ b/site/components/SignIn/SignInForm.tsx @@ -31,33 +31,8 @@ const useStyles = makeStyles((theme) => ({ borderTop: `1px solid ${theme.palette.action.disabled}`, paddingTop: theme.spacing(3), }, - loginTypeToggleWrapper: { + loginTextField: { marginTop: theme.spacing(2), - display: "flex", - justifyContent: "center", - }, - loginTypeToggleBtn: { - color: theme.palette.text.primary, - // We want opacity so that this isn't super highlighted for the user. - // In most cases, they shouldn't want to switch login types. - opacity: 0.5, - "&:hover": { - cursor: "pointer", - opacity: 1, - textDecoration: "underline", - }, - }, - loginTypeToggleBtnFocusVisible: { - opacity: 1, - textDecoration: "underline", - }, - loginTypeBtn: { - backgroundColor: "#2A2B45", - textTransform: "none", - - "&:not(:first-child)": { - marginTop: theme.spacing(2), - }, }, submitBtn: { marginTop: theme.spacing(2), @@ -101,19 +76,21 @@ export const SignInForm: React.FC = ({ email.trim()} form={form} formFieldName="email" fullWidth inputProps={{ id: "signin-form-inpt-email", + className: styles.innerText, }} - margin="none" placeholder="Email" variant="outlined" /> = ({ id: "signin-form-inpt-password", }} isPassword - margin="none" placeholder="Password" variant="outlined" /> From df359afefaff7685139e0098cceb75f7b3b1945a Mon Sep 17 00:00:00 2001 From: Bryan Phelps Date: Thu, 10 Feb 2022 00:17:57 +0000 Subject: [PATCH 2/2] Remove unnecessary class --- site/components/SignIn/SignInForm.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/site/components/SignIn/SignInForm.tsx b/site/components/SignIn/SignInForm.tsx index 78b98f1347e39..a456cf57ed56e 100644 --- a/site/components/SignIn/SignInForm.tsx +++ b/site/components/SignIn/SignInForm.tsx @@ -83,7 +83,6 @@ export const SignInForm: React.FC = ({ fullWidth inputProps={{ id: "signin-form-inpt-email", - className: styles.innerText, }} placeholder="Email" variant="outlined" pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy