Skip to content

Commit

Permalink
Merge pull request #3842 from ivanko22/replaceFont2
Browse files Browse the repository at this point in the history
[WV-196] fix replace Nunito to Poppins font TEAM REVIEW
  • Loading branch information
DaleMcGrew authored Feb 29, 2024
2 parents bbe2b05 + 05b5260 commit 3c5e61d
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ const WeVoteBody = styled('div')`
background-color: #fff; // rgb(235, 236, 238); // #fafafa;
color: #333;
display: block;
font-family: "Nunito Sans", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: "Poppins", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
line-height: 1.4;
margin: 0 auto;
// max-width: 960px;
Expand Down
14 changes: 7 additions & 7 deletions src/css/main.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@charset "UTF-8";
@import "https://fonts.googleapis.com/css?family=Nunito+Sans:400,700&display=swap";
@import "https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap";

/*!
July 31, 2023: ran https://www.cssportal.com/css-optimize/ to shrink the size of the file
Expand Down Expand Up @@ -54,7 +54,7 @@ html {
body {
background-color:#fff;
color:#000;
font-family:"Nunito Sans","Helvetica Neue Light","Helvetica Neue","Helvetica","Arial",sans-serif;
font-family:"Poppins","Helvetica Neue Light","Helvetica Neue","Helvetica","Arial",sans-serif;
font-size:16px;
font-style:normal;
font-weight:normal;
Expand Down Expand Up @@ -2387,7 +2387,7 @@ h1,h2,h3,h4,h5,h6 {
.card-main__display-name {
display:inline-block;
font-size:18px;
font-weight:700;
font-weight:600;
margin-right:8px;
vertical-align:middle
}
Expand Down Expand Up @@ -3671,7 +3671,7 @@ a {
}

.intro-story__h1 {
font-weight:800;
font-weight:600;
font-size:24px;
padding:32px 0 0
}
Expand All @@ -3687,7 +3687,7 @@ a {
}

.intro-story__h1--alt {
font-weight:700;
font-weight:600;
font-size:30px;
padding-top:32px
}
Expand Down Expand Up @@ -3892,7 +3892,7 @@ a {

.issue-icon-list__issue-icon {
color:#999;
font-weight:900;
font-weight:600;
height:calc(16px + 4px);
width:calc(16px + 4px);
flex:none;
Expand Down Expand Up @@ -4533,7 +4533,7 @@ a {

.header-nav__icon--about {
font-size:.8rem;
font-weight:700;
font-weight:600;
height:24px;
display:flex;
align-items:center;
Expand Down
2 changes: 1 addition & 1 deletion src/js/common/components/Settings/VoterPhotoUpload.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const styles = (theme) => ({
dropzoneText: {
color: '#818181',
fontSize: '18px',
fontFamily: "'Nunito Sans', 'Helvetica Neue Light', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontFamily: "'Poppins', 'Helvetica Neue Light', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
fontWeight: '300',
paddingLeft: 5,
paddingRight: 5,
Expand Down
2 changes: 1 addition & 1 deletion src/js/common/pages/CampaignStart/CampaignStartIntro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ const StepText = styled('div')(({ theme }) => (`

const StepTitle = styled('div')(({ theme }) => (`
font-size: 20px;
font-weight: 600;
font-weight: 500;
padding: 0 8px;
text-align: left;
${theme.breakpoints.down('sm')} {
Expand Down
2 changes: 1 addition & 1 deletion src/js/common/stories/button.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.storybook-button {
font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 700;
border: 0;
border-radius: 3em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ const StepNumber = styled('div')(({ theme }) => (`

const StepTitle = styled('div')(({ theme }) => (`
font-size: 20px;
font-weight: 600;
font-weight: 500;
padding: 0 8px;
text-align: left;
vertical-align: top;
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/Navigation/HeaderBarSuspense.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function HeaderBarSuspense () {
position: 'relative',
color: 'rgb(51, 51, 51)',
backgroundColor: 'white',
fontFamily: '"Nunito Sans", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif',
fontFamily: '"Poppins", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif',
height: '48px',
boxShadow: standardBoxShadow('wide'),
}}
Expand Down
4 changes: 2 additions & 2 deletions src/js/components/Ready/ElectionCountdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ const CardCountdownInternalWrapper = styled('div')`
const CardTitleUpcoming = styled('h1')(({ theme }) => (`
color: #2E3C5D !important;
font-size: 64px;
font-weight: 900;
font-weight: 500;
margin-bottom: 8px;
margin-top: 12px;
text-align: center;
Expand All @@ -358,7 +358,7 @@ const CardSubTitle = styled('h3', {
shouldForwardProp: (prop) => !['desktopMode', 'center'].includes(prop),
})(({ desktopMode, center }) => (`
font-size: ${desktopMode ? '18px' : '22px'};
font-weight: 700;
font-weight: 500;
color: #2E3C5D !important;
margin-bottom: 0 !important;
margin-top: ${desktopMode ? '24px' : null};
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/Ready/ReadyTaskBallot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ const styles = (theme) => ({
color: 'rgb(51, 51, 51)',
display: 'flex',
flexDirection: 'column',
fontFamily: '"Nunito Sans", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif',
fontFamily: '"Poppins", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif',
fontSize: 16,
height: 173,
lineHeight: 22,
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/Share/SharedItemIntroduction.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const StepNumber = styled('div')(({ theme }) => (`

const StepTitle = styled('div')(({ theme }) => (`
font-size: 20px;
font-weight: 600;
font-weight: 500;
padding: 0 8px;
text-align: left;
vertical-align: top;
Expand Down
12 changes: 6 additions & 6 deletions src/js/components/Style/muiStyleOverrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const muiStyleOverrides = {
styleOverrides: {
root: {
boxShadow: 'unset',
fontFamily: '"Nunito Sans", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif',
fontFamily: '"Poppins", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif',
fontSize: '16px',
textTransform: 'none',
userSelect: 'none',
Expand All @@ -35,31 +35,31 @@ const muiStyleOverrides = {
MuiChip: {
styleOverrides: {
root: {
fontFamily: '"Nunito Sans", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif',
fontFamily: '"Poppins", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif',
fontSize: 16,
},
},
},
MuiFormControlLabel: {
styleOverrides: {
root: {
fontFamily: '"Nunito Sans", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif',
fontFamily: '"Poppins", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif',
marginBottom: '-.5rem',
},
},
},
MuiInputBase: {
styleOverrides: {
root: {
fontFamily: '"Nunito Sans", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif',
fontFamily: '"Poppins", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif',
fontSize: 16,
},
},
},
MuiMenuItem: {
styleOverrides: {
root: {
fontFamily: '"Nunito Sans", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif',
fontFamily: '"Poppins", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif',
marginTop: '-6px',
minHeight: 34,
},
Expand All @@ -68,7 +68,7 @@ const muiStyleOverrides = {
MuiTab: {
styleOverrides: {
root: {
fontFamily: '"Nunito Sans", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif',
fontFamily: '"Poppins", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif',
fontSize: 16,
outline: 'none !important',
textTransform: 'none',
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/Values/IssueCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ const FollowersWrapper = styled('div')`

const IssueName = styled('h3')`
font-size: 18px;
font-weight: bold;
font-weight: 500;
margin-bottom: 0;
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ export default function AddCandidateExtensionForm (props) {
name="candidateName"
id="candidateName"
defaultValue={candidate.candidateName}
InputLabelProps={{ style: { fontFamily: 'Nunito Sans' } }}
InputProps={{ style: { fontFamily: 'Nunito Sans' } }}
InputLabelProps={{ style: { fontFamily: 'Poppins' } }}
InputProps={{ style: { fontFamily: 'Poppins' } }}
onBlur={handleBlur}
/>
<CandidateTextField
Expand All @@ -154,8 +154,8 @@ export default function AddCandidateExtensionForm (props) {
name="candidateSpecificEndorsementUrl"
id="candidateSpecificEndorsementUrl"
defaultValue={candidate.candidateSpecificEndorsementUrl}
InputLabelProps={{ style: { fontFamily: 'Nunito Sans' } }}
InputProps={{ style: { fontFamily: 'Nunito Sans' } }}
InputLabelProps={{ style: { fontFamily: 'Poppins' } }}
InputProps={{ style: { fontFamily: 'Poppins' } }}
onBlur={handleBlur}
/>
<CandidateTextField
Expand All @@ -167,8 +167,8 @@ export default function AddCandidateExtensionForm (props) {
name="endorsementPageUrl"
id="endorsementURL"
defaultValue={candidate.endorsementPageUrl}
InputLabelProps={{ style: { fontFamily: 'Nunito Sans' } }}
InputProps={{ style: { fontFamily: 'Nunito Sans' } }}
InputLabelProps={{ style: { fontFamily: 'Poppins' } }}
InputProps={{ style: { fontFamily: 'Poppins' } }}
onBlur={handleBlur}
/>
<CheckBoxArea>
Expand Down Expand Up @@ -216,10 +216,10 @@ export default function AddCandidateExtensionForm (props) {
// id="candidateURL"
defaultValue={candidate.endorsementText}
InputLabelProps={{
style: { fontFamily: 'Nunito Sans' },
style: { fontFamily: 'Poppins' },
shrink: true,
}}
InputProps={{ style: { fontFamily: 'Nunito Sans' } }}
InputProps={{ style: { fontFamily: 'Poppins' } }}
onBlur={handleBlur}
rows="5"
// maxRows="5"
Expand All @@ -242,7 +242,7 @@ const CandidateForm = styled('div')`

const CandidateTextField = styled(TextField)`
display: block;
font-family: "Nunito Sans", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: "Poppins", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
margin-bottom: 10px;
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export default function EditCandidateForExtensionForm (props) {
label="Candidate Name"
name="candidateName"
defaultValue={candidate.candidateName}
InputLabelProps={{ style: { fontFamily: 'Nunito Sans' } }}
InputProps={{ style: { fontFamily: 'Nunito Sans' } }}
InputLabelProps={{ style: { fontFamily: 'Poppins' } }}
InputProps={{ style: { fontFamily: 'Poppins' } }}
onBlur={handleBlur}
/>
<CandidateTextField
Expand All @@ -76,8 +76,8 @@ export default function EditCandidateForExtensionForm (props) {
label="Campaign URL"
name="candidateCampaignUrl"
defaultValue={candidate.candidateCampaignUrl}
InputLabelProps={{ style: { fontFamily: 'Nunito Sans' }, shrink: true }}
InputProps={{ style: { fontFamily: 'Nunito Sans' } }}
InputLabelProps={{ style: { fontFamily: 'Poppins' }, shrink: true }}
InputProps={{ style: { fontFamily: 'Poppins' } }}
onBlur={handleBlur}
/>
<CandidateTextField
Expand All @@ -88,8 +88,8 @@ export default function EditCandidateForExtensionForm (props) {
label="Endorsement URL"
name="endorsementPageUrl"
defaultValue={candidate.endorsementPageUrl}
InputLabelProps={{ style: { fontFamily: 'Nunito Sans' } }}
InputProps={{ style: { fontFamily: 'Nunito Sans' } }}
InputLabelProps={{ style: { fontFamily: 'Poppins' } }}
InputProps={{ style: { fontFamily: 'Poppins' } }}
onBlur={handleBlur}
/>
<CheckBoxArea>
Expand Down Expand Up @@ -135,8 +135,8 @@ export default function EditCandidateForExtensionForm (props) {
label="Endorsement Text"
name="statementText"
defaultValue={candidate.statementText === 'null' ? '' : candidate.statementText}
InputLabelProps={{ style: { fontFamily: 'Nunito Sans' }, shrink: true }}
InputProps={{ style: { fontFamily: 'Nunito Sans' } }}
InputLabelProps={{ style: { fontFamily: 'Poppins' }, shrink: true }}
InputProps={{ style: { fontFamily: 'Poppins' } }}
onBlur={handleBlur}
rows="5"
// maxRows="5"
Expand All @@ -161,7 +161,7 @@ const CandidateForm = styled('div')`

const CandidateTextField = styled(TextField)`
display: block;
font-family: "Nunito Sans", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-family: "Poppins", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
margin-bottom: 10px;
`;

Expand Down

0 comments on commit 3c5e61d

Please sign in to comment.