Skip to content

Commit e6df266

Browse files
authored
fix: Spacing and markup in Ui Kit inputs (#176)
1 parent e6732b5 commit e6df266

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

packages/fuselage-ui-kit/src/Input.js

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22
import {
33
Field,
4-
FieldGroup,
54
TextAreaInput,
65
TextInput,
76
} from '@rocket.chat/fuselage';
@@ -16,14 +15,14 @@ export const Input = React.memo(({ label, element, parser, index, hint, context
1615
const [{ error }] = useBlockContext(element, context);
1716
return (
1817
<Block>
19-
<FieldGroup>
20-
<Field>
21-
{label && <Field.Label>{label}</Field.Label>}
18+
<Field>
19+
{label && <Field.Label>{label}</Field.Label>}
20+
<Field.Row>
2221
{parser.renderInputs(element, BLOCK_CONTEXT.FORM, parser, index)}
23-
{error && <Field.Error>{error}</Field.Error>}
24-
{hint && <Field.Hint>{hint}</Field.Hint>}
25-
</Field>
26-
</FieldGroup>
22+
</Field.Row>
23+
{error && <Field.Error>{error}</Field.Error>}
24+
{hint && <Field.Hint>{hint}</Field.Hint>}
25+
</Field>
2726
</Block>
2827
);
2928
});

0 commit comments

Comments
 (0)