-
- Sign in to {applicationName}
-
+
Sign in
{Boolean(error) && (
@@ -110,15 +97,15 @@ export const SignInForm: FC> = ({
)}
- {passwordEnabled && showPasswordAuth && (
-
)}
- {passwordEnabled && showPasswordAuth && oAuthEnabled && (
+ {passwordEnabled && oAuthEnabled && (
Or
@@ -126,36 +113,17 @@ export const SignInForm: FC
> = ({
)}
- {oAuthEnabled && (
-
)}
{!passwordEnabled && !oAuthEnabled && (
No authentication methods configured!
)}
-
- {passwordEnabled && !showPasswordAuth && (
- <>
-
-
-
- >
- )}
);
};
diff --git a/site/src/pages/LoginPage/SignInForm.types.ts b/site/src/pages/LoginPage/SignInForm.types.ts
deleted file mode 100644
index a143b46e4d27a..0000000000000
--- a/site/src/pages/LoginPage/SignInForm.types.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * BuiltInAuthFormValues describes a form using built-in (email/password)
- * authentication. This form may not always be present depending on external
- * auth providers available and administrative configurations
- */
-export interface BuiltInAuthFormValues {
- email: string;
- password: string;
-}
diff --git a/site/src/theme/constants.ts b/site/src/theme/constants.ts
index 32282a1ad73a8..5c58eed56a697 100644
--- a/site/src/theme/constants.ts
+++ b/site/src/theme/constants.ts
@@ -9,6 +9,7 @@ export const sidePadding = 24;
export const dashboardContentBottomPadding = 8 * 6;
// MUI does not have aligned heights for buttons and inputs so we have to "hack" it a little bit
+export const BUTTON_XL_HEIGHT = 44;
export const BUTTON_LG_HEIGHT = 40;
export const BUTTON_MD_HEIGHT = 36;
export const BUTTON_SM_HEIGHT = 32;
diff --git a/site/src/theme/mui.ts b/site/src/theme/mui.ts
index f54c4e6691bec..86f0d26019274 100644
--- a/site/src/theme/mui.ts
+++ b/site/src/theme/mui.ts
@@ -6,6 +6,7 @@ import {
BUTTON_LG_HEIGHT,
BUTTON_MD_HEIGHT,
BUTTON_SM_HEIGHT,
+ BUTTON_XL_HEIGHT,
} from "./constants";
// eslint-disable-next-line no-restricted-imports -- We need MUI here
import { alertClasses } from "@mui/material/Alert";
@@ -172,6 +173,9 @@ dark = createTheme(dark, {
sizeLarge: {
height: BUTTON_LG_HEIGHT,
},
+ sizeXlarge: {
+ height: BUTTON_XL_HEIGHT,
+ },
outlined: {
":hover": {
border: `1px solid ${colors.gray[11]}`,
@@ -190,10 +194,10 @@ dark = createTheme(dark, {
},
},
containedNeutral: {
- borderColor: colors.gray[12],
- backgroundColor: colors.gray[13],
+ backgroundColor: colors.gray[14],
+
"&:hover": {
- backgroundColor: colors.gray[12],
+ backgroundColor: colors.gray[13],
},
},
iconSizeMedium: {