Skip to content

Commit

Permalink
VxDesign 3.1: Tweaks found during ballot creation (#4584) (#4585)
Browse files Browse the repository at this point in the history
* Format dates using UTC when listing elections

Otherwise they may be off by one day

* Scale padding around clerk signature image according to density

Otherwise the image gets shrunk to a very small size in higher density
layouts.

* Remove left/right language in instruction text

* Regenerate HMPB fixtures

* Update UWI detection test snapshots
  • Loading branch information
jonahkagan authored Feb 12, 2024
1 parent 7a0f9bb commit 47f1713
Show file tree
Hide file tree
Showing 169 changed files with 209 additions and 207 deletions.
4 changes: 3 additions & 1 deletion apps/design/frontend/src/elections_screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export function ElectionsScreen(): JSX.Element | null {
<td>{election.title || 'Untitled Election'}</td>
<td>
{election.date &&
new Date(election.date).toLocaleDateString()}
new Date(election.date).toLocaleDateString(undefined, {
timeZone: 'UTC',
})}
</td>
<td>{election.county.name}</td>
<td>{election.state}</td>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions libs/hmpb/layout/src/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ function HeaderAndInstructions({
timeZone: 'UTC',
}).format(new Date(election.date));

const clerkSignatureRowHeight = m.HEADER_ROW_HEIGHT - 1.5;
const clerkSignatureRowHeight = m.HEADER_ROW_HEIGHT - m.HEADER_ROW_HEIGHT / 4;
const clerkSignatureColumnWidth = nhCustomContent.clerkSignatureImage
? 6.5
: 0;
Expand Down Expand Up @@ -589,7 +589,7 @@ function HeaderAndInstructions({
},
},
{
text: 'To vote for a person whose name is not on the ballot, write the person’s name on the "write-in" line and completely fill in the oval to the left of the line.',
text: 'To vote for a person whose name is not on the ballot, write the person’s name on the "write-in" line and completely fill in the oval next to the line.',
fontStyle: m.FontStyles.SMALL,
},
],
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1389,8 +1389,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down
Binary file modified libs/hmpb/render-backend/fixtures/famous-names/blank-ballot.pdf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1389,8 +1389,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down
Binary file modified libs/hmpb/render-backend/fixtures/famous-names/marked-ballot.pdf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1773,8 +1773,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down Expand Up @@ -21620,8 +21620,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1773,8 +1773,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down Expand Up @@ -21672,8 +21672,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot,",
"write the person’s name on the \"write-in\" line and",
"completely fill in the oval to the left of the line."
"completely fill in the oval next to the line."
],
"fontSize": 8,
"fontWeight": 400,
Expand Down Expand Up @@ -21614,7 +21614,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot,",
"write the person’s name on the \"write-in\" line and",
"completely fill in the oval to the left of the line."
"completely fill in the oval next to the line."
],
"fontSize": 8,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot,",
"write the person’s name on the \"write-in\" line and",
"completely fill in the oval to the left of the line."
"completely fill in the oval next to the line."
],
"fontSize": 8,
"fontWeight": 400,
Expand Down Expand Up @@ -21666,7 +21666,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot,",
"write the person’s name on the \"write-in\" line and",
"completely fill in the oval to the left of the line."
"completely fill in the oval next to the line."
],
"fontSize": 8,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot, write the",
"person’s name on the \"write-in\" line and completely fill in the",
"oval to the left of the line."
"oval next to the line."
],
"fontSize": 7,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot, write the",
"person’s name on the \"write-in\" line and completely fill in the",
"oval to the left of the line."
"oval next to the line."
],
"fontSize": 7,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1837,8 +1837,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down Expand Up @@ -22102,8 +22102,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1837,8 +1837,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down Expand Up @@ -22154,8 +22154,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot,",
"write the person’s name on the \"write-in\" line and",
"completely fill in the oval to the left of the line."
"completely fill in the oval next to the line."
],
"fontSize": 8,
"fontWeight": 400,
Expand Down Expand Up @@ -22237,7 +22237,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot,",
"write the person’s name on the \"write-in\" line and",
"completely fill in the oval to the left of the line."
"completely fill in the oval next to the line."
],
"fontSize": 8,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot,",
"write the person’s name on the \"write-in\" line and",
"completely fill in the oval to the left of the line."
"completely fill in the oval next to the line."
],
"fontSize": 8,
"fontWeight": 400,
Expand Down Expand Up @@ -22289,7 +22289,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot,",
"write the person’s name on the \"write-in\" line and",
"completely fill in the oval to the left of the line."
"completely fill in the oval next to the line."
],
"fontSize": 8,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot, write the",
"person’s name on the \"write-in\" line and completely fill in the",
"oval to the left of the line."
"oval next to the line."
],
"fontSize": 7,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot, write the",
"person’s name on the \"write-in\" line and completely fill in the",
"oval to the left of the line."
"oval next to the line."
],
"fontSize": 7,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2029,8 +2029,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down Expand Up @@ -22964,8 +22964,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2029,8 +2029,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down Expand Up @@ -23016,8 +23016,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2029,7 +2029,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot,",
"write the person’s name on the \"write-in\" line and",
"completely fill in the oval to the left of the line."
"completely fill in the oval next to the line."
],
"fontSize": 8,
"fontWeight": 400,
Expand Down Expand Up @@ -22956,7 +22956,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot,",
"write the person’s name on the \"write-in\" line and",
"completely fill in the oval to the left of the line."
"completely fill in the oval next to the line."
],
"fontSize": 8,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2029,7 +2029,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot,",
"write the person’s name on the \"write-in\" line and",
"completely fill in the oval to the left of the line."
"completely fill in the oval next to the line."
],
"fontSize": 8,
"fontWeight": 400,
Expand Down Expand Up @@ -23008,7 +23008,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot,",
"write the person’s name on the \"write-in\" line and",
"completely fill in the oval to the left of the line."
"completely fill in the oval next to the line."
],
"fontSize": 8,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2029,7 +2029,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot, write the",
"person’s name on the \"write-in\" line and completely fill in the",
"oval to the left of the line."
"oval next to the line."
],
"fontSize": 7,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2029,7 +2029,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot, write the",
"person’s name on the \"write-in\" line and completely fill in the",
"oval to the left of the line."
"oval next to the line."
],
"fontSize": 7,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2093,8 +2093,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down Expand Up @@ -23156,8 +23156,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2093,8 +2093,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down Expand Up @@ -23208,8 +23208,8 @@
"textLines": [
"To vote for a person whose name is not on the",
"ballot, write the person’s name on the \"write-in\"",
"line and completely fill in the oval to the left of",
"the line."
"line and completely fill in the oval next to the",
"line."
],
"fontSize": 9,
"fontWeight": 400,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2093,7 +2093,7 @@
"textLines": [
"To vote for a person whose name is not on the ballot,",
"write the person’s name on the \"write-in\" line and",
"completely fill in the oval to the left of the line."
"completely fill in the oval next to the line."
],
"fontSize": 8,
"fontWeight": 400,
Expand Down
Binary file not shown.
Loading

0 comments on commit 47f1713

Please sign in to comment.