From 8ae16b64ac3fe0f8d44b364c285c7df6f8528109 Mon Sep 17 00:00:00 2001 From: MiraGeowerkstatt Date: Thu, 17 Oct 2024 15:57:14 +0200 Subject: [PATCH] Improve textfield labels according to design --- src/client/src/AppTheme.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/client/src/AppTheme.ts b/src/client/src/AppTheme.ts index da4170562..2b98aa468 100644 --- a/src/client/src/AppTheme.ts +++ b/src/client/src/AppTheme.ts @@ -409,9 +409,11 @@ export const theme = createTheme({ defaultProps: { size: "small", variant: "outlined", + notched: false, }, styleOverrides: { root: { + marginTop: themeSpacing(2), borderRadius: themeSpacing(0.5), flex: "1", @@ -430,10 +432,20 @@ export const theme = createTheme({ defaultProps: { shrink: true, }, + styleOverrides: { + root: { + color: themePalette.neutral.contrastText, + fontWeight: 500, + fontSize: "17px !important", + lineHeight: "20px", + top: "-10px", + left: "-1px", + }, + }, }, MuiOutlinedInput: { defaultProps: { - notched: true, + notched: false, }, }, MuiCardHeader: {