From 2adeed38d817c1188a1b239e75beb5d618825409 Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Fri, 14 Dec 2018 23:16:44 +0100 Subject: Fix default heading size --- packages/website/ts/@next/components/text.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/website/ts/@next/components/text.tsx b/packages/website/ts/@next/components/text.tsx index 350c4c844..a687bca38 100644 --- a/packages/website/ts/@next/components/text.tsx +++ b/packages/website/ts/@next/components/text.tsx @@ -61,6 +61,10 @@ export const Heading: React.StatelessComponent = props => { ); }; +Heading.defaultProps = { + size: 'default', +}; + // No need to declare it twice as Styled then rewrap as a stateless comp // Note: this would be useful to be implemented the same way was "Heading" // and be more generic. e.g. with a props asElement so we can use it -- cgit