From 595868204a1f87270d303e7e7265becfef57cbcf Mon Sep 17 00:00:00 2001 From: Ian Jones Date: Thu, 6 Jul 2023 13:54:41 +0100 Subject: [PATCH] chore: Update font sizes to linear numbers --- .../src/@planx/components/Confirmation/Public.tsx | 8 +++++--- .../components/FileUploadAndLabel/Public.tsx | 4 ++-- .../src/@planx/components/Notice/Public.tsx | 4 +--- .../src/@planx/components/Pay/Public/Confirm.tsx | 8 ++++---- .../components/Pay/Public/InviteToPayForm.tsx | 6 ++---- .../@planx/components/PlanningConstraints/List.tsx | 2 +- .../components/PlanningConstraints/Public.tsx | 8 ++++---- .../components/PropertyInformation/Public.tsx | 2 +- .../src/@planx/components/Result/Editor.tsx | 6 ++++-- .../src/@planx/components/Result/Public/index.tsx | 4 ++-- .../src/@planx/components/Section/Public.tsx | 2 +- .../components/shared/Preview/MoreInfoSection.tsx | 2 +- .../components/shared/Preview/QuestionHeader.tsx | 2 +- .../components/shared/Preview/SummaryList.tsx | 2 +- editor.planx.uk/src/components/ErrorFallback.tsx | 2 +- editor.planx.uk/src/components/Header.tsx | 2 +- .../components/Settings/DataManagerSettings.tsx | 2 +- .../components/Settings/DesignSettings.tsx | 14 ++++++++++---- .../components/Settings/ServiceFlags.tsx | 2 +- .../components/Settings/ServiceSettings.tsx | 8 +++++--- .../components/Settings/TeamSettings.tsx | 8 +++++--- editor.planx.uk/src/pages/GlobalSettings.tsx | 2 +- editor.planx.uk/src/pages/Pay/InviteToPay.tsx | 4 ++-- .../src/pages/Preview/ReconciliationPage.tsx | 2 +- editor.planx.uk/src/pages/Team.tsx | 2 +- editor.planx.uk/src/pages/Teams.tsx | 4 ++-- editor.planx.uk/src/theme.ts | 10 +++++++--- editor.planx.uk/src/ui/ExpandableList.tsx | 2 +- editor.planx.uk/src/ui/NumberedList.tsx | 2 +- editor.planx.uk/src/ui/Palette.stories.tsx | 4 +++- 30 files changed, 73 insertions(+), 57 deletions(-) diff --git a/editor.planx.uk/src/@planx/components/Confirmation/Public.tsx b/editor.planx.uk/src/@planx/components/Confirmation/Public.tsx index f3771cb7dc..8ab494355f 100644 --- a/editor.planx.uk/src/@planx/components/Confirmation/Public.tsx +++ b/editor.planx.uk/src/@planx/components/Confirmation/Public.tsx @@ -91,10 +91,10 @@ export default function ConfirmationComponent(props: Props) { {props.nextSteps && Boolean(props.nextSteps?.length) && ( - + What happens next? - + )} @@ -110,7 +110,9 @@ export default function ConfirmationComponent(props: Props) { {props.contactInfo && ( <> - Contact us + + Contact us + diff --git a/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Public.tsx b/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Public.tsx index e83022332e..659c80d42b 100644 --- a/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Public.tsx +++ b/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Public.tsx @@ -163,7 +163,7 @@ function Component(props: Props) { padding: "1.5em 0 1em", }} > - + {`${capitalize(fileListCategory)} files`} , @@ -181,7 +181,7 @@ function Component(props: Props) { {Boolean(slots.length) && ( - + Your uploaded files )} diff --git a/editor.planx.uk/src/@planx/components/Notice/Public.tsx b/editor.planx.uk/src/@planx/components/Notice/Public.tsx index 077f8a5025..11f7d95e4e 100644 --- a/editor.planx.uk/src/@planx/components/Notice/Public.tsx +++ b/editor.planx.uk/src/@planx/components/Notice/Public.tsx @@ -87,9 +87,7 @@ const NoticeComponent: React.FC = (props) => { - - {props.title} - + {props.title} = (props) => { {props.instructionsTitle || "How to pay"} @@ -107,7 +107,7 @@ const PayBody: React.FC = (props) => { ) : ( - + {props.error} @@ -147,7 +147,7 @@ export default function Confirm(props: Props) { <> - + {page === "Pay" ? props.title : props.secondaryPageTitle} @@ -160,7 +160,7 @@ export default function Confirm(props: Props) { > = ({ ) : ( - - {nomineeTitle} - + {nomineeTitle} {nomineeDescription && ( = ({ }} /> - + {yourDetailsTitle} {yourDetailsDescription && ( diff --git a/editor.planx.uk/src/@planx/components/PlanningConstraints/List.tsx b/editor.planx.uk/src/@planx/components/PlanningConstraints/List.tsx index d33b004d1b..f4e09e8aa9 100644 --- a/editor.planx.uk/src/@planx/components/PlanningConstraints/List.tsx +++ b/editor.planx.uk/src/@planx/components/PlanningConstraints/List.tsx @@ -163,7 +163,7 @@ function ConstraintListItem({ children, ...props }: ConstraintListItemProps) { <> - + {`This property ${props?.content}`} {Boolean(props.data?.length) && ( diff --git a/editor.planx.uk/src/@planx/components/PlanningConstraints/Public.tsx b/editor.planx.uk/src/@planx/components/PlanningConstraints/Public.tsx index 1536849ed6..26f77a630e 100644 --- a/editor.planx.uk/src/@planx/components/PlanningConstraints/Public.tsx +++ b/editor.planx.uk/src/@planx/components/PlanningConstraints/Public.tsx @@ -255,7 +255,7 @@ export function PlanningConstraintsContent( )} {positiveConstraints.length > 0 && ( <> - + These are the planning constraints we think apply to this property @@ -275,7 +275,7 @@ export function PlanningConstraintsContent( )} {positiveConstraints.length === 0 && negativeConstraints.length > 0 && ( <> - + It looks like there are no constraints on this property @@ -319,7 +319,7 @@ interface ConstraintsFetchErrorProps { const ConstraintsFetchError = (props: ConstraintsFetchErrorProps) => ( - + No information available {props.error && @@ -353,7 +353,7 @@ const ConstraintsGraphError = (props: ConstraintsGraphErrorProps) => ( role="status" data-testid="error-summary-invalid-graph" > - + Invalid graph diff --git a/editor.planx.uk/src/@planx/components/PropertyInformation/Public.tsx b/editor.planx.uk/src/@planx/components/PropertyInformation/Public.tsx index dc4d594392..e87ade03e0 100644 --- a/editor.planx.uk/src/@planx/components/PropertyInformation/Public.tsx +++ b/editor.planx.uk/src/@planx/components/PropertyInformation/Public.tsx @@ -52,7 +52,7 @@ function Component(props: PublicProps) { role="status" data-testid="error-summary-invalid-graph" > - + Invalid graph diff --git a/editor.planx.uk/src/@planx/components/Result/Editor.tsx b/editor.planx.uk/src/@planx/components/Result/Editor.tsx index 679f79a4d8..aa369c8013 100644 --- a/editor.planx.uk/src/@planx/components/Result/Editor.tsx +++ b/editor.planx.uk/src/@planx/components/Result/Editor.tsx @@ -97,7 +97,7 @@ const ResultComponent: React.FC = (props) => { - +