Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix jumping boxes in faq section #538

Merged
merged 1 commit into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/modules/home/FAQItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const TableContainer = styled(ContentContainer)({
})

const AccordionHeader = styled(AccordionSummary)(({ theme }) => ({
minHeight: 40,
padding: "20px 38px",
height: 91,
padding: "0px 38px",
background: theme.palette.primary.main,
borderRadius: "8px"
}))
Expand Down
10 changes: 10 additions & 0 deletions src/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,16 @@ export const theme = createTheme({
rounded: {
borderRadius: "8px"
}
},
MuiAccordionSummary: {
root: {
"minHeight": 91,
"& .Mui-expanded": {
minHeight: 91,
display: "flex",
alignItems: "center"
}
}
}
}
})
Expand Down
7 changes: 7 additions & 0 deletions src/theme/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,13 @@ export const legacyTheme = createMuiTheme({
root: {
display: "none"
}
},
MuiAccordionSummary: {
root: {
"& .Mui-expanded": {
minHeight: 91
}
}
}
}
})