diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-13 06:25:47 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-13 06:25:47 +0800 |
commit | 9d9341901f2b5b14e3a29a6bdc18a505d9b361aa (patch) | |
tree | 684b1447da52ed2f5de7b8599d18fd3a2f329fcc /packages/website/ts/components | |
parent | 155e3d225d3255d6728e1c986de46416f5685e7f (diff) | |
download | dexon-sol-tools-9d9341901f2b5b14e3a29a6bdc18a505d9b361aa.tar dexon-sol-tools-9d9341901f2b5b14e3a29a6bdc18a505d9b361aa.tar.gz dexon-sol-tools-9d9341901f2b5b14e3a29a6bdc18a505d9b361aa.tar.bz2 dexon-sol-tools-9d9341901f2b5b14e3a29a6bdc18a505d9b361aa.tar.lz dexon-sol-tools-9d9341901f2b5b14e3a29a6bdc18a505d9b361aa.tar.xz dexon-sol-tools-9d9341901f2b5b14e3a29a6bdc18a505d9b361aa.tar.zst dexon-sol-tools-9d9341901f2b5b14e3a29a6bdc18a505d9b361aa.zip |
Use Text component for HeaderItem
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r-- | packages/website/ts/components/ui/text.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/website/ts/components/ui/text.tsx b/packages/website/ts/components/ui/text.tsx index e90c1707d..2b80869d1 100644 --- a/packages/website/ts/components/ui/text.tsx +++ b/packages/website/ts/components/ui/text.tsx @@ -11,6 +11,7 @@ export interface TextProps { fontFamily?: string; fontColor?: string; lineHeight?: string; + minHeight?: string; center?: boolean; fontWeight?: number; } @@ -26,6 +27,7 @@ export const Text = styled(PlainText)` ${props => (props.lineHeight ? `line-height: ${props.lineHeight}` : '')}; ${props => (props.center ? 'text-align: center' : '')}; color: ${props => props.fontColor}; + min-height: ${props => props.minHeight}; `; Text.defaultProps = { |