Skip to content

Commit

Permalink
fix(FormLabel): adjust line-height
Browse files Browse the repository at this point in the history
Line-height property should be 20px
  • Loading branch information
DSil committed Jan 12, 2023
1 parent 9760298 commit e505725
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/orbit-components/src/FormLabel/index.tsx
Expand Up @@ -78,7 +78,7 @@ const FormLabel = styled(
font-size: ${theme.orbit.fontSizeFormLabel};
font-weight: ${theme.orbit.fontWeightMedium};
color: ${!filled || disabled ? theme.orbit.colorFormLabel : theme.orbit.colorFormLabelFilled};
line-height: ${theme.orbit.lineHeightTextSmall};
line-height: ${theme.orbit.lineHeightTextNormal};
margin-bottom: ${theme.orbit.spaceXXSmall};
`}
`;
Expand Down
2 changes: 1 addition & 1 deletion packages/orbit-components/src/InputGroup/index.tsx
Expand Up @@ -46,7 +46,7 @@ const getFakeGroupMarginTop = ({
theme: typeof defaultTheme;
}) => {
if (!label) return false;
return `calc(${theme.orbit.lineHeightTextSmall} + ${theme.orbit.spaceXXSmall})`;
return `calc(${theme.orbit.lineHeightTextNormal} + ${theme.orbit.spaceXXSmall})`;
};

const FakeGroup = styled.span<{
Expand Down

0 comments on commit e505725

Please sign in to comment.