From 03c939939c5993dda49f341cea30cde8825a8fda Mon Sep 17 00:00:00 2001 From: fernandomg Date: Fri, 11 Sep 2020 17:10:11 -0300 Subject: [PATCH] Set `TextField` background-color to the defined in specs --- src/inputs/TextField/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/inputs/TextField/index.tsx b/src/inputs/TextField/index.tsx index 78a97427..d83f8735 100644 --- a/src/inputs/TextField/index.tsx +++ b/src/inputs/TextField/index.tsx @@ -26,6 +26,10 @@ const CustomTextField = styled((props: TextFieldProps) => ( cursor: ${({ readOnly }) => (readOnly === true ? 'not-allowed' : 'auto')}; } + .MuiFilledInput-root { + background-color: ${({ theme }) => theme.colors.inputField}; + } + .MuiFormLabel-root.Mui-focused { color: ${({ theme, error }) => error ? theme.colors.error : theme.colors.primary};