Skip to content

Commit

Permalink
fixed faq rounded borders
Browse files Browse the repository at this point in the history
  • Loading branch information
suddernpy committed Jan 1, 2025
1 parent 5e75270 commit 447019b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
26 changes: 17 additions & 9 deletions src/app/faq/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,24 @@ const APPLICATION_QUESTIONS: QNA[] = [
},
];

const StyledAccordion = styled(Accordion)(() => {
return {
border: `1px solid var(--brand-color)`,
const StyledAccordion = styled(Accordion)(() => ({
border: `1px solid var(--brand-color)`,
marginBottom: `10px`,
borderRadius: `8px`,
overflow: "hidden",
"&:not(:last-of-type)": {
marginBottom: `10px`,
".MuiAccordionDetails-root": {},
".MuiAccordionSummary-content": {
marginBottom: `0px`,
},
};
});
borderRadius: `8px`,
},
"&:last-of-type": {
marginBottom: `10px`,
borderRadius: `8px`,
},
".MuiAccordionDetails-root": {},
".MuiAccordionSummary-content": {
marginBottom: `0px`,
},
}));

const StyledQNA = ({
qna: { question, answer },
Expand Down

0 comments on commit 447019b

Please sign in to comment.