Skip to content

Commit

Permalink
Same height to selectors and text inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
anagperal committed Jul 8, 2024
1 parent b9978b5 commit 2433a0b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/webapp/components/search-input/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ const IconContainer = styled.div<{ $disabled?: boolean }>`

const StyledTextField = styled(TextField)<{ error?: boolean }>`
font-weight: 400;
height: 40px;
font-size: 0.875rem;
.MuiOutlinedInput-root {
height: 40px;
}
color: ${props => props.theme.palette.common.grey1};
.MuiFormHelperText-root {
color: ${props =>
Expand Down
1 change: 1 addition & 0 deletions src/webapp/components/selector/MultipleSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ const StyledFormHelperText = styled(FormHelperText)<{ error?: boolean }>`
`;

const StyledSelect = styled(Select)<{ error?: boolean }>`
height: 40px;
.MuiOutlinedInput-notchedOutline {
border-color: ${props =>
props.error ? props.theme.palette.common.red600 : props.theme.palette.common.grey500};
Expand Down
1 change: 1 addition & 0 deletions src/webapp/components/selector/Selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ const StyledFormHelperText = styled(FormHelperText)<{ error?: boolean }>`
`;

const StyledSelect = styled(Select)<{ error?: boolean }>`
height: 40px;
.MuiOutlinedInput-notchedOutline {
border-color: ${props =>
props.error ? props.theme.palette.common.red600 : props.theme.palette.common.grey500};
Expand Down
4 changes: 4 additions & 0 deletions src/webapp/components/text-input/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ const Label = styled(InputLabel)`
`;

const StyledTextField = styled(TextField)<{ error?: boolean }>`
height: 40px;
.MuiOutlinedInput-root {
height: 40px;
}
.MuiFormHelperText-root {
color: ${props =>
props.error ? props.theme.palette.common.red700 : props.theme.palette.common.grey700};
Expand Down

0 comments on commit 2433a0b

Please sign in to comment.