Skip to content
Open
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
13 changes: 10 additions & 3 deletions apps/marketing/src/themes/code.org/styleOverrides/accordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ export const ACCORDION_OVERRIDES: Components<Theme>['MuiAccordion'] = {
styleOverrides: {
root: ({theme}) => ({
boxShadow: 'none',
borderRadius: '4px',
borderRadius: theme.shape.borderRadius,
border: '1px solid var(--borders-neutral-primary)',
padding: 0,
margin: 0,
marginBottom: theme.spacing(2),
'&::before': {
display: 'none',
},
'&:hover': {
backgroundColor: 'var(--background-neutral-secondary)',
},
Expand All @@ -33,13 +36,15 @@ export const ACCORDION_SUMMARY_OVERRIDES: Components<Theme>['MuiAccordionSummary
styleOverrides: {
root: ({theme}) => ({
padding: theme.spacing(1.5, 2.5, 1.5, 2.5),
borderRadius: 0,
color: 'var(---text-neutral-primary)',
borderRadius: theme.shape.borderRadius,
color: 'var(--text-neutral-primary)',
backgroundColor: 'var(--background-neutral-primary)',
minHeight: 'unset',

'&.Mui-expanded': {
minHeight: 'unset',
borderBottomLeftRadius: 0,
borderBottomRightRadius: 0,
},

'&:hover': {
Expand Down Expand Up @@ -82,6 +87,8 @@ export const ACCORDION_DETAILS_OVERRIDES: Components<Theme>['MuiAccordionDetails
padding: theme.spacing(2.5), // 20px
borderTop: '1px solid var(--borders-neutral-primary)',
backgroundColor: 'var(--background-neutral-secondary)',
borderBottomLeftRadius: theme.shape.borderRadius,
borderBottomRightRadius: theme.shape.borderRadius,
}),
},
};
Loading