Skip to content

Commit

Permalink
make text-field outline style consistent with the select
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Feb 10, 2022
1 parent 6a1746c commit 132a538
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
5 changes: 3 additions & 2 deletions docs/data/material/components/text-fields/UnstyledInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import InputUnstyled from '@mui/base/InputUnstyled';
import { styled } from '@mui/system';

const blue = {
100: '#DAECFF',
200: '#80BFFF',
400: '#3399FF',
600: '#0072E5',
};

const grey = {
Expand Down Expand Up @@ -39,8 +41,7 @@ const StyledInputElement = styled('input')(
}
&:focus {
outline: 2px solid ${theme.palette.mode === 'dark' ? blue[400] : blue[200]};
outline-offset: 2px;
outline: 3px solid ${theme.palette.mode === 'dark' ? blue[600] : blue[100]};
}
`,
);
Expand Down
5 changes: 3 additions & 2 deletions docs/data/material/components/text-fields/UnstyledInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import InputUnstyled, { InputUnstyledProps } from '@mui/base/InputUnstyled';
import { styled } from '@mui/system';

const blue = {
100: '#DAECFF',
200: '#80BFFF',
400: '#3399FF',
600: '#0072E5',
};

const grey = {
Expand Down Expand Up @@ -39,8 +41,7 @@ const StyledInputElement = styled('input')(
}
&:focus {
outline: 2px solid ${theme.palette.mode === 'dark' ? blue[400] : blue[200]};
outline-offset: 2px;
outline: 3px solid ${theme.palette.mode === 'dark' ? blue[600] : blue[100]};
}
`,
);
Expand Down
5 changes: 3 additions & 2 deletions docs/data/material/components/text-fields/UseInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import { useInput } from '@mui/base';
import { styled } from '@mui/system';

const blue = {
100: '#DAECFF',
200: '#80BFFF',
400: '#3399FF',
600: '#0072E5',
};

const grey = {
Expand Down Expand Up @@ -39,8 +41,7 @@ const StyledInputElement = styled('input')(
}
&:focus {
outline: 2px solid ${theme.palette.mode === 'dark' ? blue[400] : blue[200]};
outline-offset: 2px;
outline: 3px solid ${theme.palette.mode === 'dark' ? blue[600] : blue[100]};
}
`,
);
Expand Down
5 changes: 3 additions & 2 deletions docs/data/material/components/text-fields/UseInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import { useInput } from '@mui/base';
import { styled } from '@mui/system';

const blue = {
100: '#DAECFF',
200: '#80BFFF',
400: '#3399FF',
600: '#0072E5',
};

const grey = {
Expand Down Expand Up @@ -39,8 +41,7 @@ const StyledInputElement = styled('input')(
}
&:focus {
outline: 2px solid ${theme.palette.mode === 'dark' ? blue[400] : blue[200]};
outline-offset: 2px;
outline: 3px solid ${theme.palette.mode === 'dark' ? blue[600] : blue[100]};
}
`,
);
Expand Down

0 comments on commit 132a538

Please sign in to comment.