Skip to content

Commit d55cd97

Browse files
Lara HarrowLuke Bowerman
authored andcommitted
remove margen-bottom form Field's default value
1 parent e437ca6 commit d55cd97

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

packages/components/src/Form/Fields/Field.tsx

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -148,19 +148,15 @@ const InputArea = styled.div``
148148
const MessageArea = styled.div``
149149

150150
export const Field = styled(FieldLayout)`
151-
height: fit-content;
152-
width: ${({ width }) => width || 'fit-content'};
153151
align-items: left;
154-
justify-content: space-between;
155-
margin-bottom: ${({ theme }) => theme.space.xsmall};
156-
157152
display: grid;
158153
grid-template-areas: ${({ inline }) =>
159154
inline
160155
? '"label input detail" ". messages messages"'
161156
: '"label detail" "input input" "messages messages"'};
162-
grid-template-columns: ${({ inline, labelWidth }) =>
163-
inline ? `${labelWidth} 1fr` : undefined};
157+
height: fit-content;
158+
justify-content: space-between;
159+
width: ${({ width }) => width || 'fit-content'};
164160
165161
${InputArea} {
166162
display: flex;
@@ -177,16 +173,16 @@ export const Field = styled(FieldLayout)`
177173
${({ inline, theme }) =>
178174
inline
179175
? `
180-
text-align: right;
181-
line-height: ${inputHeight};
182-
justify-self: end;
183-
height: ${inputHeight};
184-
padding-right: ${theme.space.small};
185-
`
176+
height: ${inputHeight};
177+
justify-self: end;
178+
line-height: ${inputHeight};
179+
padding-right: ${theme.space.small};
180+
width: 150px;
181+
`
186182
: `
187183
padding-bottom: ${theme.space.xsmall};
188184
189-
`}
185+
`}
190186
}
191187
192188
${FieldDetail} {

0 commit comments

Comments
 (0)