feat: improves group styling when there is no label
This commit is contained in:
@@ -29,6 +29,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
&--no-label {
|
||||
margin-top: 0,
|
||||
}
|
||||
|
||||
@include mid-break {
|
||||
&__fields-wrapper {
|
||||
display: flex;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user