feat: improves group styling when there is no label

This commit is contained in:
James
2021-07-26 14:33:26 -04:00
parent 4d1249dd03
commit ea358a66e8
2 changed files with 9 additions and 1 deletions

View File

@@ -29,6 +29,10 @@
}
}
&--no-label {
margin-top: 0,
}
@include mid-break {
&__fields-wrapper {
display: flex;

View File

@@ -29,7 +29,11 @@ const Group: React.FC<Props> = (props) => {
return (
<div
className="field-type group"
className={[
'field-type',
baseClass,
!label && `${baseClass}--no-label`,
].filter(Boolean).join(' ')}
style={{
...style,
width,