Skip to content

Commit

Permalink
Card elevation 8 -> 2 / Paper 1 -> 2
Browse files Browse the repository at this point in the history
1 is default for MUI.
To me, there is just not enough shadow on 1,
to make the surface distinct from the background.

Paper is basically the same thing,
so bumping to be consistent with Cards.
  • Loading branch information
CarsonF committed Jun 25, 2024
1 parent 8362b34 commit 92bb9d9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,7 @@ export const ProgressReportStepper = () => {
useProgressReportContext();

return (
<Paper
elevation={4}
sx={{ p: 2 }}
component="nav"
aria-label="Quarterly Report Steps"
>
<Paper sx={{ p: 2 }} component="nav" aria-label="Quarterly Report Steps">
<Typography component="h3" paragraph aria-hidden>
Steps:
</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const VariantAccordion = ({
const [expanded, { toggle }] = useToggle(expandedInput ?? false);

return (
<Accordion expanded={expanded} elevation={2} square>
<Accordion expanded={expanded} square>
<AccordionSummary
aria-controls={`${variant.key}-content`}
expandIcon={<ExpandMore />}
Expand Down
7 changes: 6 additions & 1 deletion src/theme/overrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,14 @@ export const appComponents = ({
size: 'small',
},
},
MuiPaper: {
defaultProps: {
elevation: 2,
},
},
MuiCard: {
defaultProps: {
elevation: 8,
elevation: 2,
},
},
MuiCardActions: {
Expand Down

0 comments on commit 92bb9d9

Please sign in to comment.