Skip to content

Commit 34c00dc

Browse files
christophidespPanos Christophides
andauthored
remove redundant height from labels and add margin bottom (#413)
* remove redundant height from labels and add margin bottom * replace div with flex Co-authored-by: Panos Christophides <panos@netdata.cloud>
1 parent 71aadf5 commit 34c00dc

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/components/input/styled.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,17 @@ export const StyledLabel = styled.label`
5050
display: block;
5151
${disabledCursorSupport};
5252
`
53-
export const LabelRow = styled.div`
54-
width: 100%;
55-
height: 40px;
56-
flex-shrink: 0;
57-
flex-grow: 0;
53+
export const LabelRow = styled(Flex).attrs({
54+
alignItems: "center",
55+
color: "text",
56+
flex: false,
57+
width: "100%",
58+
})`
5859
font-style: normal;
5960
font-weight: bold;
6061
font-size: 14px;
6162
line-height: 18px;
62-
color: ${getColor("text")};
63-
display: flex;
64-
align-items: center;
63+
margin-bottom: 4px;
6564
`
6665

6766
export const InputContainer = styled(Flex)`

0 commit comments

Comments
 (0)