From 7794fc2b181655d054be1a16c1cbccf909e3f6d5 Mon Sep 17 00:00:00 2001 From: NmN03jain Date: Sun, 1 Oct 2023 20:27:45 +0530 Subject: [PATCH] Standard input not loading correctly #39157 fixed issue --- .../components/text-fields/BasicTextFields.js | 38 +++++++------------ .../text-fields/BasicTextFields.tsx | 19 +++++++--- 2 files changed, 28 insertions(+), 29 deletions(-) diff --git a/docs/data/material/components/text-fields/BasicTextFields.js b/docs/data/material/components/text-fields/BasicTextFields.js index 36d3ec53a967d5..412fc4edba020e 100644 --- a/docs/data/material/components/text-fields/BasicTextFields.js +++ b/docs/data/material/components/text-fields/BasicTextFields.js @@ -2,38 +2,28 @@ import * as React from 'react'; import Box from '@mui/material/Box'; import TextField from '@mui/material/TextField'; +const filledTextFieldStyles = { + '& .MuiFilledInput-root': { + backgroundColor: 'inherit', + }, +}; + +const standardTextFieldStyles = { + '& .MuiInputBase-root': { + border: '1px solid #e0e0e0', + }, +}; + export default function BasicTextFields() { return ( :not(style)': { m: 1, width: '25ch' }, - }} noValidate autoComplete="off" > - - + + ); } - diff --git a/docs/data/material/components/text-fields/BasicTextFields.tsx b/docs/data/material/components/text-fields/BasicTextFields.tsx index 7253adf126e2b6..412fc4edba020e 100644 --- a/docs/data/material/components/text-fields/BasicTextFields.tsx +++ b/docs/data/material/components/text-fields/BasicTextFields.tsx @@ -2,19 +2,28 @@ import * as React from 'react'; import Box from '@mui/material/Box'; import TextField from '@mui/material/TextField'; +const filledTextFieldStyles = { + '& .MuiFilledInput-root': { + backgroundColor: 'inherit', + }, +}; + +const standardTextFieldStyles = { + '& .MuiInputBase-root': { + border: '1px solid #e0e0e0', + }, +}; + export default function BasicTextFields() { return ( :not(style)': { m: 1, width: '25ch' }, - }} noValidate autoComplete="off" > - - + + ); }