Skip to content

Commit df05457

Browse files
authored
Merge pull request #2853 from hackforla/2850-fix-phone-ext-alignment
Fixes Phone/Ext fields and Confirm checkbox alignment on validation error
2 parents 27fef45 + 4463836 commit df05457

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

client/src/components/Admin/OrganizationEdit/Identification.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ interface GeocodeResult {
5656
};
5757
}
5858

59-
interface IdentificationProps extends OrganizationSectionWithSetFieldValueProps {
59+
interface IdentificationProps
60+
extends OrganizationSectionWithSetFieldValueProps {
6061
setFieldTouched: (
6162
field: string,
6263
isTouched?: boolean,
@@ -196,7 +197,7 @@ export default function Identification({
196197
<Stack
197198
direction={{ xs: "column", sm: "row" }}
198199
spacing={{ xs: 1, sm: 2, md: 4 }}
199-
alignItems="flex-end"
200+
alignItems="flex-start"
200201
>
201202
<Box sx={{ width: { xs: "100%", sm: "auto" } }}>
202203
<Label
@@ -232,7 +233,12 @@ export default function Identification({
232233
/>
233234
</Box>
234235

235-
<Box sx={confirmationErrorSx("confirmedPhone")}>
236+
<Box
237+
sx={[
238+
{ pt: { sm: "40px" } },
239+
confirmationErrorSx("confirmedPhone"),
240+
]}
241+
>
236242
<FormControlLabel
237243
componentsProps={{
238244
typography: {

0 commit comments

Comments
 (0)