Skip to content

Commit

Permalink
fix: Address height shift on focus
Browse files Browse the repository at this point in the history
  • Loading branch information
amattu2 committed Oct 8, 2024
1 parent aad1a15 commit 37bcac7
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/components/Questionnaire/CustomAutocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ const StyledAutocomplete = styled(Autocomplete)(({ readOnly }: { readOnly?: bool
"&.MuiAutocomplete-inputRoot.MuiInputBase-root": {
display: "flex",
alignItems: "center",
padding: "12px 30px 12px 12px !important",
padding: "10.5px 30px 10.5px 12px !important",
height: "44px",
...(readOnly
? {
backgroundColor: "#E5EEF4",
Expand All @@ -97,17 +98,10 @@ const StyledAutocomplete = styled(Autocomplete)(({ readOnly }: { readOnly?: bool
: {}),
},
"& .MuiInputBase-input": {
fontWeight: 400,
fontSize: "16px",
fontFamily: "'Nunito', 'Rubik', sans-serif",
padding: "0 !important",
height: "20px",
cursor: readOnly ? "not-allowed !important" : "initial",
},
"& .MuiAutocomplete-clearIndicator": {
visibility: "hidden !important",
position: "absolute",
},
},
}));

Expand Down

0 comments on commit 37bcac7

Please sign in to comment.