Skip to content

Commit

Permalink
fix: Paragraphs should use text font size from the theme (#1717)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuruog authored Nov 24, 2020
1 parent c39b42f commit 9c2ca5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/rsg-components/Para/ParaRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import PropTypes from 'prop-types';
import Styled, { JssInjectedProps } from 'rsg-components/Styled';
import * as Rsg from '../../../typings';

export const styles = ({ space, color, fontFamily }: Rsg.Theme) => ({
export const styles = ({ space, color, fontFamily, fontSize }: Rsg.Theme) => ({
para: {
marginTop: 0,
marginBottom: space[2],
color: color.base,
fontFamily: fontFamily.base,
fontSize: 'inherit',
fontSize: fontSize.text,
lineHeight: 1.5,
},
});
Expand Down

0 comments on commit 9c2ca5b

Please sign in to comment.