-
+
{tsln.resultsPage.tableTotalAmount}
diff --git a/styles/globals.css b/styles/globals.css
index 1a87156bd..4bcdf0cf1 100644
--- a/styles/globals.css
+++ b/styles/globals.css
@@ -45,22 +45,22 @@
/* typography gc overrides */
.h1 {
- @apply text-h1 font-bold mb-[15px] font-header-gc border-b border-header-rule;
+ @apply text-h1 font-semibold mb-[15px] font-header-gc border-b border-header-rule;
}
.h2 {
- @apply text-h2 font-bold mb-[15px] font-header-gc;
+ @apply text-h2 font-semibold mb-[15px] font-header-gc;
}
.h3 {
- @apply text-h3 font-bold mb-[15px] font-header-gc;
+ @apply text-h3 font-semibold mb-[15px] font-header-gc;
}
.h4 {
- @apply text-h4 font-bold mb-[15px] font-header-gc;
+ @apply text-h4 font-semibold mb-[15px] font-header-gc;
}
.h5 {
- @apply font-bold mb-[15px] font-header-gc;
+ @apply font-semibold mb-[15px] font-header-gc;
}
.h6 {
- @apply text-h6 font-bold mb-[15px] font-header-gc;
+ @apply text-h6 font-semibold mb-[15px] font-header-gc;
}
/* form controls */
From b12a37970f8515c0b6a7953d4c5cfb3b707d698a Mon Sep 17 00:00:00 2001
From: Jeremy Kennedy
Date: Tue, 1 Mar 2022 11:46:41 -0500
Subject: [PATCH 2/5] fix privacy disclaimer (#201)
---
pages/index.tsx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pages/index.tsx b/pages/index.tsx
index ede650465..baeaa6e9b 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -62,7 +62,10 @@ const Home: NextPage = (props) => {
{tsln.privacyDiscTitle}
From 08a4361e64ae0023f8dc680d2b64fe85114461c5 Mon Sep 17 00:00:00 2001
From: Khalid Adan
Date: Tue, 1 Mar 2022 15:01:11 -0500
Subject: [PATCH 3/5] Feature/feb28 design updates (#202)
* remove redundant FAQ text on French under results table
* dangerous HTML on Summary Box so bold formatting works
* remove progress bar
* 'Get Results' instead of 'Estimate'
* Estimate over clear and back; Add stacked buttons for apply links with
no header
* updated buttons to match the proposed solution
* Fixing list styles for lists
---
__tests__/components/ProgressBar.test.tsx | 155 ----------------------
components/ConditionalLinks/index.tsx | 6 +-
components/ContactCTA/index.tsx | 4 +-
components/Forms/ComponentFactory.tsx | 68 ++--------
components/Forms/CurrencyField.tsx | 14 +-
components/Forms/FormButtons/index.tsx | 89 +++++++++++++
components/Layout/NeedHelpList.tsx | 2 +-
components/ProgressBar/index.tsx | 114 ----------------
components/ResultsPage/index.tsx | 9 --
i18n/web/en.ts | 2 +-
i18n/web/fr.ts | 4 +-
i18n/web/index.ts | 2 +-
12 files changed, 115 insertions(+), 354 deletions(-)
delete mode 100644 __tests__/components/ProgressBar.test.tsx
create mode 100644 components/Forms/FormButtons/index.tsx
delete mode 100644 components/ProgressBar/index.tsx
diff --git a/__tests__/components/ProgressBar.test.tsx b/__tests__/components/ProgressBar.test.tsx
deleted file mode 100644
index a7a52f5dc..000000000
--- a/__tests__/components/ProgressBar.test.tsx
+++ /dev/null
@@ -1,155 +0,0 @@
-/**
- * @jest-environment jsdom
- */
-import '@testing-library/jest-dom'
-import { render, screen } from '@testing-library/react'
-import { Instance } from 'mobx-state-tree'
-import * as nextRouter from 'next/router'
-import React from 'react'
-import { RootStore } from '../../client-state/store'
-import { StoreProvider } from '../../components/Contexts'
-import ProgressBar from '../../components/ProgressBar'
-import { FieldCategory, Language } from '../../utils/api/definitions/enums'
-
-describe('ProgressBar component', () => {
- let root: Instance
- let useRouter
-
- beforeAll(() => {
- useRouter = jest.spyOn(nextRouter, 'useRouter')
- useRouter.mockImplementation(() => ({
- route: '/',
- pathname: '/',
- query: '',
- asPath: '',
- locale: 'en',
- locales: ['en', 'fr'],
- }))
- })
-
- beforeEach(() => {
- root = RootStore.create({
- form: {
- fields: [
- {
- key: 'income',
- type: 'currency',
- label:
- 'What is your current annual net income in Canadian Dollars?',
- category: {
- key: FieldCategory.INCOME_DETAILS,
- text: 'Income Details',
- },
- order: 1,
- placeholder: '$20,000',
- default: undefined,
- value: null,
- options: [],
- error: undefined,
- },
- {
- key: 'fakefield',
- type: 'currency',
- label:
- 'What is your current annual net income in Canadian Dollars?',
- category: {
- key: FieldCategory.PERSONAL_INFORMATION,
- text: 'Personal Information',
- },
- order: 1,
- placeholder: '$20,000',
- default: undefined,
- value: null,
- options: [],
- error: undefined,
- },
- {
- key: 'fakefieldtwo',
- type: 'currency',
- label:
- 'What is your current annual net income in Canadian Dollars?',
- category: {
- key: FieldCategory.LEGAL_STATUS,
- text: 'Legal Status',
- },
- order: 1,
- placeholder: '$20,000',
- default: undefined,
- value: null,
- options: [],
- error: undefined,
- },
- ],
- },
- oas: {},
- gis: {},
- afs: {},
- allowance: {},
- summary: {},
- lang: Language.EN,
- })
- })
- it('renders progress for an incomplete form', () => {
- root.form.fields[0].setValue('10000') // set income to complete
-
- const ui = (
-
-
-
- )
- render(ui)
-
- const progress = screen.getAllByTestId('progress')
- expect(progress[0].classList).toContain('complete-progress-section')
- expect(progress[1].classList).toContain('incomplete-progress-section')
- expect(progress[2].classList).toContain('incomplete-progress-section')
- })
-
- it('renders progress for a complete form', () => {
- root.form.fields[0].setValue('10000')
- root.form.fields[1].setValue('10000')
- root.form.fields[2].setValue('10000')
-
- const ui = (
-
-
-
- )
- render(ui)
-
- const progress = screen.getAllByTestId('progress')
- expect(progress[0].classList).toContain('complete-progress-section')
- expect(progress[1].classList).toContain('complete-progress-section')
- expect(progress[2].classList).toContain('complete-progress-section')
- })
-})
diff --git a/components/ConditionalLinks/index.tsx b/components/ConditionalLinks/index.tsx
index af21c08c6..3635c6a70 100644
--- a/components/ConditionalLinks/index.tsx
+++ b/components/ConditionalLinks/index.tsx
@@ -10,11 +10,11 @@ export const ConditionalLinks: React.VFC<{ links: InfoLink[] }> = ({
return (
<>
{moreInfo}
-
+
{links.map((link, index) => (
-
+
- {link.text}
+ {link.text}
))}
diff --git a/components/ContactCTA/index.tsx b/components/ContactCTA/index.tsx
index 21a0fc4d7..5b46549f1 100644
--- a/components/ContactCTA/index.tsx
+++ b/components/ContactCTA/index.tsx
@@ -27,11 +27,11 @@ export const ContactCTA: React.VFC = () => {
dangerouslySetInnerHTML={{ __html: tsln.contactCTA }}
/>
{root.summary?.nextStepsLinks && (
-