Skip to content

Commit 41745cb

Browse files
committed
theme adjustments
1 parent 01a7045 commit 41745cb

2 files changed

Lines changed: 21 additions & 35 deletions

File tree

src/app/Theme.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,15 +269,27 @@ export const theme = createTheme({
269269
],
270270
},
271271
MuiTypography: {
272+
// Only maps the custom variants; MUI falls back to its own mapping for
273+
// every built-in variant.
274+
defaultProps: {
275+
variantMapping: {
276+
sectionTitle: 'h2',
277+
},
278+
},
272279
variants: [
273280
{
281+
// Heading for a page section. Laid out as a flex row so an optional
282+
// leading icon aligns with the text.
274283
props: { variant: 'sectionTitle' },
275284
style: {
276285
color: 'var(--mui-palette-primary-main)',
277-
fontWeight: 'bold',
278-
fontSize: '1.5rem',
286+
fontWeight: 700,
287+
fontSize: '1.25rem', // h6 size
288+
lineHeight: 1.6,
279289
marginBottom: '0.5rem',
280-
marginTop: '1rem',
290+
display: 'flex',
291+
alignItems: 'center',
292+
gap: '0.5rem',
281293
},
282294
},
283295
],

src/app/[locale]/seal-of-reliability/components/SealOfReliabilityDescriptionPage.tsx

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ export default async function SealOfReliabilityDescriptionPage(): Promise<ReactE
6464
</Typography>
6565
{heroParagraphs.map((paragraph) => (
6666
<Typography
67-
variant='body2'
68-
sx={{ mb: 1, color: 'text.secondary', lineHeight: '1.4rem' }}
67+
variant='body1'
68+
sx={{ mb: 1, color: 'text.secondary'}}
6969
key={paragraph}
7070
>
7171
{paragraph}
@@ -128,14 +128,7 @@ export default async function SealOfReliabilityDescriptionPage(): Promise<ReactE
128128
</SectionContainer>
129129

130130
<SectionContainer sx={{ mt: 5 }} maxWidth='lg'>
131-
<Typography
132-
variant='h6'
133-
component='h2'
134-
color='primary'
135-
sx={{ fontWeight: 700, mb: 1 }}
136-
>
137-
{t('benefits.title')}
138-
</Typography>
131+
<Typography variant='sectionTitle'>{t('benefits.title')}</Typography>
139132
<Box
140133
sx={{
141134
display: 'grid',
@@ -177,14 +170,7 @@ export default async function SealOfReliabilityDescriptionPage(): Promise<ReactE
177170
</SectionContainer>
178171

179172
<SectionContainer sx={{ mt: 5 }}>
180-
<Typography
181-
variant='h6'
182-
component='h2'
183-
color='primary'
184-
sx={{ fontWeight: 700, mb: 1 }}
185-
>
186-
{t('criteria.title')}
187-
</Typography>
173+
<Typography variant='sectionTitle'>{t('criteria.title')}</Typography>
188174
<Box
189175
sx={{
190176
display: 'grid',
@@ -212,12 +198,7 @@ export default async function SealOfReliabilityDescriptionPage(): Promise<ReactE
212198
</SectionContainer>
213199

214200
<SectionContainer sx={{ mt: 5 }}>
215-
<Typography
216-
variant='h6'
217-
component='h2'
218-
color='primary'
219-
sx={{ fontWeight: 700, mb: 1 }}
220-
>
201+
<Typography variant='sectionTitle'>
221202
{t('gracePeriods.title')}
222203
</Typography>
223204
<Typography variant='body2' sx={{ mb: 2 }}>
@@ -296,14 +277,7 @@ export default async function SealOfReliabilityDescriptionPage(): Promise<ReactE
296277
</SectionContainer>
297278

298279
<SectionContainer sx={{ mt: 5 }}>
299-
<Typography
300-
variant='h6'
301-
component='h2'
302-
color='primary'
303-
sx={{ fontWeight: 700, mb: 1 }}
304-
>
305-
{t('faq.title')}
306-
</Typography>
280+
<Typography variant='sectionTitle'>{t('faq.title')}</Typography>
307281
{faqEntries.map((entry, index) => (
308282
<Accordion key={entry.questionKey} sx={accordionStyle}>
309283
<AccordionSummary

0 commit comments

Comments
 (0)