Skip to content

Commit

Permalink
render invisible signature image and caption on sample ballots (#6016)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshen0 authored Feb 12, 2025
1 parent 81ce513 commit 287cc3a
Show file tree
Hide file tree
Showing 46 changed files with 20 additions and 6 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified libs/hmpb/fixtures/all-bubble-ballot/legal/blank-ballot.pdf
Binary file not shown.
Binary file modified libs/hmpb/fixtures/all-bubble-ballot/legal/cycling-test-deck.pdf
Binary file not shown.
Binary file modified libs/hmpb/fixtures/all-bubble-ballot/legal/filled-ballot.pdf
Binary file not shown.
Binary file modified libs/hmpb/fixtures/all-bubble-ballot/letter/blank-ballot.pdf
Binary file not shown.
Binary file not shown.
Binary file modified libs/hmpb/fixtures/all-bubble-ballot/letter/filled-ballot.pdf
Binary file not shown.
Binary file modified libs/hmpb/fixtures/famous-names/blank-ballot.pdf
Binary file not shown.
Binary file modified libs/hmpb/fixtures/famous-names/marked-ballot.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified libs/hmpb/fixtures/general-election/legal-es-US/blank-ballot.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified libs/hmpb/fixtures/general-election/legal/blank-ballot.pdf
Binary file not shown.
Binary file modified libs/hmpb/fixtures/general-election/legal/marked-ballot.pdf
Binary file not shown.
Binary file modified libs/hmpb/fixtures/general-election/letter/blank-ballot.pdf
Binary file not shown.
Binary file modified libs/hmpb/fixtures/general-election/letter/marked-ballot.pdf
Binary file not shown.
Binary file modified libs/hmpb/fixtures/primary-election/fish-blank-ballot.pdf
Binary file not shown.
Binary file modified libs/hmpb/fixtures/primary-election/fish-marked-ballot.pdf
Binary file not shown.
Binary file not shown.
Binary file modified libs/hmpb/fixtures/primary-election/mammal-blank-ballot.pdf
Binary file not shown.
Binary file modified libs/hmpb/fixtures/primary-election/mammal-marked-ballot.pdf
Binary file not shown.
Binary file not shown.
13 changes: 10 additions & 3 deletions libs/hmpb/src/ballot_templates/nh_ballot_template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function Header({
</DualLanguageText>
</div>
<div style={{ flexGrow: 1 }}>
{ballotMode !== 'sample' && clerkSignatureImage && (
{clerkSignatureImage && (
<div
style={{
height: '3rem',
Expand All @@ -152,11 +152,18 @@ function Header({
backgroundSize: 'contain',
backgroundRepeat: 'no-repeat',
marginTop: '0.125rem',
visibility: ballotMode === 'sample' ? 'hidden' : 'visible',
}}
/>
)}
{ballotMode !== 'sample' && clerkSignatureCaption && (
<div>{clerkSignatureCaption}</div>
{clerkSignatureCaption && (
<div
style={{
visibility: ballotMode === 'sample' ? 'hidden' : 'visible',
}}
>
{clerkSignatureCaption}
</div>
)}
</div>
</div>
Expand Down
13 changes: 10 additions & 3 deletions libs/hmpb/src/ballot_templates/v3_nh_ballot_template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function Header({
</DualLanguageText>
</div>
<div style={{ flexGrow: 1 }}>
{ballotMode !== 'sample' && clerkSignatureImage && (
{clerkSignatureImage && (
<div
style={{
height: '3rem',
Expand All @@ -202,11 +202,18 @@ function Header({
backgroundSize: 'contain',
backgroundRepeat: 'no-repeat',
marginTop: '0.125rem',
visibility: ballotMode === 'sample' ? 'hidden' : 'visible',
}}
/>
)}
{ballotMode !== 'sample' && clerkSignatureCaption && (
<div>{clerkSignatureCaption}</div>
{clerkSignatureCaption && (
<div
style={{
visibility: ballotMode === 'sample' ? 'hidden' : 'visible',
}}
>
{clerkSignatureCaption}
</div>
)}
</div>
</div>
Expand Down

0 comments on commit 287cc3a

Please sign in to comment.