From b08332227a724d5d3e65d1aca8e6f49988dcc940 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 19 Feb 2021 00:03:30 -0500 Subject: [PATCH] feat(striker-ui): add atom Label --- striker-ui/components/atoms/Label.tsx | 11 ++++++----- striker-ui/types/LabelProps.d.ts | 3 +++ 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 striker-ui/types/LabelProps.d.ts diff --git a/striker-ui/components/atoms/Label.tsx b/striker-ui/components/atoms/Label.tsx index d64abfc2..bfc48291 100644 --- a/striker-ui/components/atoms/Label.tsx +++ b/striker-ui/components/atoms/Label.tsx @@ -3,13 +3,14 @@ import styled from 'styled-components'; import DEFAULT_THEME from '../../lib/consts/DEFAULT_THEME'; -type LabelProps = { - text: string; -}; +const StyledLabel = styled.h2` + padding: 0; + margin: 0; -const StyledLabel = styled.span` - font-size: 1em; color: ${(props) => props.theme.colors.primary}; + + font-size: 1em; + font-weight: normal; `; StyledLabel.defaultProps = { diff --git a/striker-ui/types/LabelProps.d.ts b/striker-ui/types/LabelProps.d.ts new file mode 100644 index 00000000..65d06788 --- /dev/null +++ b/striker-ui/types/LabelProps.d.ts @@ -0,0 +1,3 @@ +type LabelProps = { + text: string; +};