Skip to content

Commit

Permalink
fix: DAH-2962 Update FCFS heading styling (#2423)
Browse files Browse the repository at this point in the history
* fix: xl heading size

* test: snapshot

* fix: remove header margin

* test: snapshot
  • Loading branch information
cliu02 authored Nov 19, 2024
1 parent 1f51454 commit 9a65fe5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,18 +296,18 @@ exports[`<HowToApply /> renders HowToApply component 1`] = `
class="py-10"
>
<h2
class="text-2xl font-alt-serif"
class="text-2xl mb-0 font-alt-serif"
>
How long it takes
</h2>
<h3
class="font-semibold font-alt-sans pt-6 pb-4"
class="text-heading-xl font-semibold font-alt-sans pt-6 pb-4"
>
Preparing your application
</h3>
It depends on how easy it is for you to gather all your information and documents. It may take a few hours, or you may need to do it over several days. If you applied before, it might take you less time.
<h3
class="font-semibold font-alt-sans pt-6 pb-4"
class="text-heading-xl font-semibold font-alt-sans pt-6 pb-4"
>
Submitting your application
</h3>
Expand All @@ -317,12 +317,12 @@ exports[`<HowToApply /> renders HowToApply component 1`] = `
class="pb-10"
>
<h2
class="text-2xl font-alt-serif"
class="text-2xl mb-0 font-alt-serif"
>
Before you start
</h2>
<h3
class="font-semibold font-alt-sans pt-6 pb-4"
class="text-heading-xl font-semibold font-alt-sans pt-6 pb-4"
>
Make sure you are eligible
</h3>
Expand Down Expand Up @@ -380,7 +380,7 @@ exports[`<HowToApply /> renders HowToApply component 1`] = `
</li>
</ul>
<h3
class="font-semibold font-alt-sans pt-6 pb-4"
class="text-heading-xl font-semibold font-alt-sans pt-6 pb-4"
>
See the unit in person
</h3>
Expand All @@ -398,7 +398,7 @@ exports[`<HowToApply /> renders HowToApply component 1`] = `
</div>
</div>
<h2
class="text-2xl font-alt-serif"
class="text-2xl mb-0 font-alt-serif"
>
How to apply
</h2>
Expand All @@ -411,7 +411,7 @@ exports[`<HowToApply /> renders HowToApply component 1`] = `
>
<li>
<h3
class="font-semibold font-alt-sans pb-4"
class="text-heading-xl font-semibold font-alt-sans pb-4"
>
Fill out PDF application
</h3>
Expand Down Expand Up @@ -451,7 +451,7 @@ exports[`<HowToApply /> renders HowToApply component 1`] = `
</li>
<li>
<h3
class="font-semibold font-alt-sans pb-4"
class="text-heading-xl font-semibold font-alt-sans pb-4"
>
Gather documents
</h3>
Expand Down Expand Up @@ -479,7 +479,7 @@ exports[`<HowToApply /> renders HowToApply component 1`] = `
</li>
<li>
<h3
class="font-semibold font-alt-sans pb-4"
class="text-heading-xl font-semibold font-alt-sans pb-4"
>
Combine everything into 1 PDF file
</h3>
Expand Down Expand Up @@ -541,7 +541,7 @@ exports[`<HowToApply /> renders HowToApply component 1`] = `
</li>
<li>
<h3
class="font-semibold font-alt-sans pb-4"
class="text-heading-xl font-semibold font-alt-sans pb-4"
>
Create a free account at Box.com
</h3>
Expand Down Expand Up @@ -582,7 +582,7 @@ exports[`<HowToApply /> renders HowToApply component 1`] = `
</li>
<li>
<h3
class="font-semibold font-alt-sans pb-4"
class="text-heading-xl font-semibold font-alt-sans pb-4"
>
Submit your application and get your place in line
</h3>
Expand Down Expand Up @@ -664,7 +664,7 @@ exports[`<HowToApply /> renders HowToApply component 1`] = `
</ol>
</div>
<h2
class="text-2xl font-alt-serif"
class="text-2xl mb-0 font-alt-serif"
>
What happens next
</h2>
Expand Down
12 changes: 9 additions & 3 deletions app/javascript/pages/howToApply/how-to-apply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,15 @@ const applicationsOpen = (listing: RailsSaleListing) =>
listing && getFcfsSalesListingState(listing) === ListingState.Open

const Header = ({ headerText }: { headerText: string }) => {
return <h2 className="text-2xl font-alt-serif">{headerText}</h2>
return <h2 className="text-2xl mb-0 font-alt-serif">{headerText}</h2>
}

const SubHeader = ({ subHeaderText }: { subHeaderText: string }) => {
return <h3 className="font-semibold font-alt-sans pt-6 pb-4">{subHeaderText}</h3>
return (
<Heading size="xl" className="font-semibold font-alt-sans pt-6 pb-4" priority={3}>
{subHeaderText}
</Heading>
)
}

const InfoBox = ({ title, children }: { title: string; children: ReactNode }) => {
Expand Down Expand Up @@ -229,7 +233,9 @@ const HowToApplyListItem = ({
}) => {
return (
<li>
<h3 className="font-semibold font-alt-sans pb-4">{headerText}</h3>
<Heading priority={3} size="xl" className="font-semibold font-alt-sans pb-4">
{headerText}
</Heading>
<div className="text-base">{children}</div>
</li>
)
Expand Down

0 comments on commit 9a65fe5

Please sign in to comment.