Skip to content

Commit

Permalink
feat(Lozenge): set font weight to 400
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbrillant committed Jul 15, 2022
1 parent 74d2869 commit 71aad1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions packages/react/src/components/lozenge/lozenge.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports[`Lozenge alert matches the snapshot 1`] = `
display: -ms-inline-flexbox;
display: inline-flex;
font-size: 0.75rem;
font-weight: var(--font-semi-bold);
font-weight: var(--font-normal);
line-height: 0.875rem;
max-width: 312px;
overflow: hidden;
Expand Down Expand Up @@ -52,7 +52,7 @@ exports[`Lozenge default matches the snapshot 1`] = `
display: -ms-inline-flexbox;
display: inline-flex;
font-size: 0.75rem;
font-weight: var(--font-semi-bold);
font-weight: var(--font-normal);
line-height: 0.875rem;
max-width: 312px;
overflow: hidden;
Expand Down Expand Up @@ -88,7 +88,7 @@ exports[`Lozenge info matches the snapshot 1`] = `
display: -ms-inline-flexbox;
display: inline-flex;
font-size: 0.75rem;
font-weight: var(--font-semi-bold);
font-weight: var(--font-normal);
line-height: 0.875rem;
max-width: 312px;
overflow: hidden;
Expand Down Expand Up @@ -124,7 +124,7 @@ exports[`Lozenge matches the snapshot 1`] = `
display: -ms-inline-flexbox;
display: inline-flex;
font-size: 0.75rem;
font-weight: var(--font-semi-bold);
font-weight: var(--font-normal);
line-height: 0.875rem;
max-width: 312px;
overflow: hidden;
Expand Down Expand Up @@ -160,7 +160,7 @@ exports[`Lozenge success matches the snapshot 1`] = `
display: -ms-inline-flexbox;
display: inline-flex;
font-size: 0.75rem;
font-weight: var(--font-semi-bold);
font-weight: var(--font-normal);
line-height: 0.875rem;
max-width: 312px;
overflow: hidden;
Expand Down Expand Up @@ -196,7 +196,7 @@ exports[`Lozenge warning matches the snapshot 1`] = `
display: -ms-inline-flexbox;
display: inline-flex;
font-size: 0.75rem;
font-weight: var(--font-semi-bold);
font-weight: var(--font-normal);
line-height: 0.875rem;
max-width: 312px;
overflow: hidden;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/lozenge/lozenge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const StyledLozenge = styled.span<StyledLozengeProps>`
color: ${getLozengeColor};
display: inline-flex;
font-size: ${({ $isMobile }) => ($isMobile ? '0.875rem' : '0.75rem')};
font-weight: var(--font-semi-bold);
font-weight: var(--font-normal);
line-height: ${({ $isMobile }) => ($isMobile ? '1.375rem' : '0.875rem')};
max-width: ${MAXIMUM_LENGTH};
overflow: hidden;
Expand Down

0 comments on commit 71aad1f

Please sign in to comment.