Batch 1: ToggleButtonGroup fixes, heading standardisation, spacing normalisation
- ToggleButtonGroup: increase label-to-options spacing (mb 1→2), top-align button content (flex-start), fix selected border CSS specificity by adding .Mui-selected in grouped selector - Standardise all split-layout step headings from h4 to display3 (ProvidersStep, PackagesStep, PreviewStep, VenueStep, CoffinsStep, CoffinDetailsStep) — matches D-A decision for brand warmth - DateTimeStep: normalise section gaps (scheduling fieldset mb 3→4) - CrematoriumStep: add subheading for consistency, normalise witness section spacing (mb 3→4) - Fix input label clipping in PackagesStep and DateTimeStep (add pt: 0.5 to TextField containers for float-label clearance) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -114,7 +114,7 @@ export const ToggleButtonGroup = React.forwardRef<HTMLFieldSetElement, ToggleBut
|
|||||||
color: 'text.primary',
|
color: 'text.primary',
|
||||||
fontWeight: 600,
|
fontWeight: 600,
|
||||||
fontSize: '1rem',
|
fontSize: '1rem',
|
||||||
mb: 1,
|
mb: 2,
|
||||||
'&.Mui-focused': { color: 'text.primary' },
|
'&.Mui-focused': { color: 'text.primary' },
|
||||||
'&.Mui-error': { color: 'text.primary' },
|
'&.Mui-error': { color: 'text.primary' },
|
||||||
}}
|
}}
|
||||||
@@ -142,6 +142,9 @@ export const ToggleButtonGroup = React.forwardRef<HTMLFieldSetElement, ToggleBut
|
|||||||
borderColor: 'var(--fa-color-neutral-200)',
|
borderColor: 'var(--fa-color-neutral-200)',
|
||||||
marginLeft: 0,
|
marginLeft: 0,
|
||||||
},
|
},
|
||||||
|
'&.Mui-selected': {
|
||||||
|
borderColor: 'primary.main',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
{...groupProps}
|
{...groupProps}
|
||||||
@@ -155,7 +158,7 @@ export const ToggleButtonGroup = React.forwardRef<HTMLFieldSetElement, ToggleBut
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
textTransform: 'none',
|
textTransform: 'none',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
alignItems: 'center',
|
alignItems: 'flex-start',
|
||||||
gap: 0.5,
|
gap: 0.5,
|
||||||
py: option.description ? 2 : 1.5,
|
py: option.description ? 2 : 1.5,
|
||||||
px: 3,
|
px: 3,
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ export const CoffinDetailsStep: React.FC<CoffinDetailsStepProps> = ({
|
|||||||
// ─── Right panel: Option selectors + CTAs ───
|
// ─── Right panel: Option selectors + CTAs ───
|
||||||
const optionsPanel = (
|
const optionsPanel = (
|
||||||
<Box>
|
<Box>
|
||||||
<Typography variant="h4" component="h1" sx={{ mb: 1 }} tabIndex={-1}>
|
<Typography variant="display3" component="h1" sx={{ mb: 1 }} tabIndex={-1}>
|
||||||
Coffin details
|
Coffin details
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ export const CoffinsStep: React.FC<CoffinsStepProps> = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{/* Page heading */}
|
{/* Page heading */}
|
||||||
<Typography variant="h4" component="h1" sx={{ mb: 1 }} tabIndex={-1}>
|
<Typography variant="display3" component="h1" sx={{ mb: 1 }} tabIndex={-1}>
|
||||||
Choose a coffin
|
Choose a coffin
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
|
|||||||
@@ -149,6 +149,12 @@ export const CrematoriumStep: React.FC<CrematoriumStepProps> = ({
|
|||||||
Crematorium
|
Crematorium
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
|
<Typography variant="body2" color="text.secondary" sx={{ mb: 4 }}>
|
||||||
|
{isPrePlanning
|
||||||
|
? 'Review the crematorium details. You can update this later.'
|
||||||
|
: 'Confirm the crematorium and let us know about any preferences.'}
|
||||||
|
</Typography>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
component="form"
|
component="form"
|
||||||
noValidate
|
noValidate
|
||||||
@@ -239,7 +245,7 @@ export const CrematoriumStep: React.FC<CrematoriumStepProps> = ({
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{/* ─── Witness / attendance question ─── */}
|
{/* ─── Witness / attendance question ─── */}
|
||||||
<FormControl component="fieldset" sx={{ mb: 3, display: 'block' }}>
|
<FormControl component="fieldset" sx={{ mb: 4, display: 'block' }}>
|
||||||
<FormLabel component="legend" sx={{ mb: 0.5 }}>
|
<FormLabel component="legend" sx={{ mb: 0.5 }}>
|
||||||
Will anyone be following the hearse to the crematorium?
|
Will anyone be following the hearse to the crematorium?
|
||||||
</FormLabel>
|
</FormLabel>
|
||||||
|
|||||||
@@ -197,6 +197,7 @@ export const DateTimeStep: React.FC<DateTimeStepProps> = ({
|
|||||||
flexDirection: { xs: 'column', sm: 'row' },
|
flexDirection: { xs: 'column', sm: 'row' },
|
||||||
gap: 2,
|
gap: 2,
|
||||||
mb: 2,
|
mb: 2,
|
||||||
|
pt: 0.5,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<TextField
|
<TextField
|
||||||
@@ -225,7 +226,7 @@ export const DateTimeStep: React.FC<DateTimeStepProps> = ({
|
|||||||
|
|
||||||
{/* ─── Section 2: Scheduling ─── */}
|
{/* ─── Section 2: Scheduling ─── */}
|
||||||
{showScheduling && (
|
{showScheduling && (
|
||||||
<Box component="fieldset" sx={{ border: 0, m: 0, p: 0, mb: 3 }}>
|
<Box component="fieldset" sx={{ border: 0, m: 0, p: 0, mb: 4 }}>
|
||||||
<Typography component="legend" variant="h5" sx={{ mb: 2.5 }}>
|
<Typography component="legend" variant="h5" sx={{ mb: 2.5 }}>
|
||||||
{schedulingHeading}
|
{schedulingHeading}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ export const PackagesStep: React.FC<PackagesStepProps> = ({
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{/* Heading */}
|
{/* Heading */}
|
||||||
<Typography variant="h4" component="h1" sx={{ mb: 0.5 }} tabIndex={-1}>
|
<Typography variant="display3" component="h1" sx={{ mb: 0.5 }} tabIndex={-1}>
|
||||||
Choose a funeral package
|
Choose a funeral package
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body2" color="text.secondary" sx={{ mb: 1 }}>
|
<Typography variant="body2" color="text.secondary" sx={{ mb: 1 }}>
|
||||||
@@ -202,7 +202,7 @@ export const PackagesStep: React.FC<PackagesStepProps> = ({
|
|||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
{/* Budget filter */}
|
{/* Budget filter */}
|
||||||
<Box sx={{ mb: 3 }}>
|
<Box sx={{ mb: 3, pt: 0.5 }}>
|
||||||
<TextField
|
<TextField
|
||||||
select
|
select
|
||||||
size="small"
|
size="small"
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ export const PreviewStep: React.FC<PreviewStepProps> = ({
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{/* Page heading */}
|
{/* Page heading */}
|
||||||
<Typography variant="h4" component="h1" sx={{ mb: 0.5 }} tabIndex={-1}>
|
<Typography variant="display3" component="h1" sx={{ mb: 0.5 }} tabIndex={-1}>
|
||||||
Your selected package
|
Your selected package
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body2" color="text.secondary" sx={{ mb: 4 }}>
|
<Typography variant="body2" color="text.secondary" sx={{ mb: 4 }}>
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ export const ProvidersStep: React.FC<ProvidersStepProps> = ({
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
{/* Header */}
|
{/* Header */}
|
||||||
<Typography variant="h4" component="h1" sx={{ mb: 0.5 }} tabIndex={-1}>
|
<Typography variant="display3" component="h1" sx={{ mb: 0.5 }} tabIndex={-1}>
|
||||||
Choose a funeral provider
|
Choose a funeral provider
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body2" color="text.secondary" sx={{ mb: 3 }}>
|
<Typography variant="body2" color="text.secondary" sx={{ mb: 3 }}>
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ export const VenueStep: React.FC<VenueStepProps> = ({
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
{/* Page heading */}
|
{/* Page heading */}
|
||||||
<Typography variant="h4" component="h1" sx={{ mb: 0.5 }} tabIndex={-1}>
|
<Typography variant="display3" component="h1" sx={{ mb: 0.5 }} tabIndex={-1}>
|
||||||
Where would you like the service?
|
Where would you like the service?
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user