Skip to content

Commit

Permalink
fix: line height error
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillermo Angeles committed Nov 20, 2023
1 parent 3f61ec6 commit fccef54
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Cell2 = styled.div<{selected: boolean, color?: string}>`
background-color: ${props => props.selected ? (props.color ? props.color : Color.background.primaryLow) : 'transparent'};
transition: background-color 0.15s ease-in;
&:hover{
background-color: ${props => props.selected ? Color.background.primaryLow : Color.status.neutral.hover};
background-color: ${props => props.selected ? (props.color ? props.color : Color.background.primaryLow) : Color.status.neutral.hover};
}
${(props) => media.lessThan("medium")`
&:hover{
Expand Down
14 changes: 14 additions & 0 deletions src/components/Text/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ const D1 = styled.h1`
font-family: 'Poppins', 'sans-serif';
color: ${Color.text.neutralHard};
font-size: 52px;
line-height: 64px;
${media.lessThan("medium")`
font-size: 48px;
line-height: 60px;
`}
`
const H1 = styled.h1`
Expand All @@ -20,8 +22,10 @@ const H1 = styled.h1`
font-family: 'Poppins', 'sans-serif';
color: ${Color.text.neutralHard};
font-size: 48px;
line-height: 56px;
${media.lessThan("medium")`
font-size: 32px;
line-height: 40px;
`}
`
const H2 = styled.h2`
Expand All @@ -30,8 +34,10 @@ const H2 = styled.h2`
font-family: 'Poppins', 'sans-serif';
color: ${Color.text.neutralHard};
font-size: 40px;
line-height: 48px;
${media.lessThan("medium")`
font-size: 28px;
line-height: 36px;
`}
`
const H3 = styled.h3`
Expand All @@ -40,8 +46,10 @@ const H3 = styled.h3`
font-family: 'Poppins', 'sans-serif';
color: ${Color.text.neutralHard};
font-size: 28px;
line-height: 36px;
${media.lessThan("medium")`
font-size: 24px;
line-height: 32px;
`}
`
const H4 = styled.h4`
Expand All @@ -50,8 +58,10 @@ const H4 = styled.h4`
font-family: 'Poppins', 'sans-serif';
color: ${Color.text.neutralHard};
font-size: 24px;
line-height: 32px;
${media.lessThan("medium")`
font-size: 20px;
line-height: 28px;
`}
`
const H5 = styled.h5`
Expand All @@ -60,8 +70,10 @@ const H5 = styled.h5`
font-family: 'Poppins', 'sans-serif';
color: ${Color.text.neutralHard};
font-size: 20px;
line-height: 28px;
${media.lessThan("medium")`
font-size: 18px;
line-height: 26px;
`}
`
const H6 = styled.h6`
Expand All @@ -70,8 +82,10 @@ const H6 = styled.h6`
font-family: 'Poppins', 'sans-serif';
color: ${Color.text.neutralHard};
font-size: 18px;
line-height: 26px;
${media.lessThan("medium")`
font-size: 16px;
line-height: 24px;
`}
`

Expand Down

0 comments on commit fccef54

Please sign in to comment.