Skip to content

Commit

Permalink
Merge pull request #364 from act-org/VickyKoblinski-patch-1
Browse files Browse the repository at this point in the history
Encourage - fix: Fixes font weight overriding preexisting font weights
  • Loading branch information
VickyKoblinski authored Dec 20, 2023
2 parents 25575ba + 7aaa114 commit b80c238
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion src/components/Loading/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Loading: FC<LoadingProps> = ({
style,
title,
}: LoadingProps): ReactElement<LoadingProps> => (
<StyledContainer aria-label={title} data-testid="loading" style={style}>
<StyledContainer aria-label={title} data-chromatic="ignore" data-testid="loading" style={style}>
<CircularProgress
size={24}
thickness={4.5}
Expand Down
21 changes: 0 additions & 21 deletions src/styles/themeEncourage/typography.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,14 @@ const typography: TypographyVariantsOptions = {
lineHeight: '24px',
[theme.breakpoints.up('xs')]: {
fontSize: '16px',
fontWeight: 400,
lineHeight: '24px',
},
[theme.breakpoints.up('sm')]: {
fontSize: '16px',
fontWeight: 400,
lineHeight: '24px',
},
[theme.breakpoints.up('lg')]: {
fontSize: '16px',
fontWeight: 400,
lineHeight: '24px',
},
},
Expand All @@ -120,17 +117,14 @@ const typography: TypographyVariantsOptions = {
lineHeight: '20px',
[theme.breakpoints.up('xs')]: {
fontSize: '14px',
fontWeight: 400,
lineHeight: '20px',
},
[theme.breakpoints.up('sm')]: {
fontSize: '14px',
fontWeight: 400,
lineHeight: '20px',
},
[theme.breakpoints.up('lg')]: {
fontSize: '14px',
fontWeight: 400,
lineHeight: '20px',
},
},
Expand Down Expand Up @@ -180,7 +174,6 @@ const typography: TypographyVariantsOptions = {
lineHeight: '32px',
[theme.breakpoints.up('xs')]: {
fontSize: '28px',
fontWeight: 500,
lineHeight: '32px',
},
[theme.breakpoints.up('sm')]: {
Expand All @@ -202,17 +195,14 @@ const typography: TypographyVariantsOptions = {
lineHeight: '32px',
[theme.breakpoints.up('xs')]: {
fontSize: '24px',
fontWeight: 600,
lineHeight: '32px',
},
[theme.breakpoints.up('sm')]: {
fontSize: '32px',
fontWeight: 600,
lineHeight: '40px',
},
[theme.breakpoints.up('lg')]: {
fontSize: '32px',
fontWeight: 600,
lineHeight: '40px',
},
},
Expand All @@ -224,17 +214,14 @@ const typography: TypographyVariantsOptions = {
lineHeight: '24px',
[theme.breakpoints.up('xs')]: {
fontSize: '20px',
fontWeight: 600,
lineHeight: '24px',
},
[theme.breakpoints.up('sm')]: {
fontSize: '28px',
fontWeight: 600,
lineHeight: '40px',
},
[theme.breakpoints.up('lg')]: {
fontSize: '28px',
fontWeight: 600,
lineHeight: '40px',
},
},
Expand All @@ -246,7 +233,6 @@ const typography: TypographyVariantsOptions = {
lineHeight: '24px',
[theme.breakpoints.up('lg')]: {
fontSize: '24px',
fontWeight: 600,
lineHeight: '32px',
},
},
Expand All @@ -258,7 +244,6 @@ const typography: TypographyVariantsOptions = {
lineHeight: '24px',
[theme.breakpoints.up('xs')]: {
fontSize: '18px',
fontWeight: 500,
lineHeight: '24px',
},
[theme.breakpoints.up('sm')]: {
Expand Down Expand Up @@ -288,17 +273,14 @@ const typography: TypographyVariantsOptions = {
textTransform: undefined, // Clear the base theme's transform
[theme.breakpoints.up('xs')]: {
fontSize: '18px',
fontWeight: 400,
lineHeight: '24px',
},
[theme.breakpoints.up('sm')]: {
fontSize: '18px',
fontWeight: 400,
lineHeight: '24px',
},
[theme.breakpoints.up('lg')]: {
fontSize: '18px',
fontWeight: 400,
lineHeight: '24px',
},
},
Expand All @@ -310,17 +292,14 @@ const typography: TypographyVariantsOptions = {
lineHeight: px(24),
[theme.breakpoints.up('xs')]: {
fontSize: '16px',
fontWeight: 400,
lineHeight: '24px',
},
[theme.breakpoints.up('sm')]: {
fontSize: '16px',
fontWeight: 400,
lineHeight: '24px',
},
[theme.breakpoints.up('lg')]: {
fontSize: '16px',
fontWeight: 400,
lineHeight: '24px',
},
},
Expand Down

0 comments on commit b80c238

Please sign in to comment.