Skip to content

Commit

Permalink
fixup! fixup! Create InputGroup component (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacerondrej committed Mar 27, 2023
1 parent 2953a47 commit 20f0290
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/lib/components/InputGroup/InputGroup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, { useContext } from 'react';
import { Text } from '../Text';
import { withGlobalProps } from '../../provider';
import { classNames } from '../../utils/classNames';
import { getRootSizeClassName } from '../_helpers/getRootSizeClassName';
import { getRootValidationStateClassName } from '../_helpers/getRootValidationStateClassName';
import { isChildrenEmpty } from '../_helpers/isChildrenEmpty';
import { resolveContextOrProp } from '../_helpers/resolveContextOrProp';
Expand Down Expand Up @@ -43,6 +44,7 @@ export const InputGroup = ({
resolveContextOrProp(formLayoutContext && formLayoutContext.layout, layout) === 'horizontal'
? styles.isRootLayoutHorizontal
: styles.isRootLayoutVertical,
getRootSizeClassName(size, styles),
getRootValidationStateClassName(validationState, styles),
)}
>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/InputGroup/InputGroup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}

.isRootLayoutHorizontal {
@include box-field-layout.horizontal($has-min-tap-target: true);
@include box-field-layout.horizontal();
}

.isRootLayoutHorizontal .label {
Expand Down

0 comments on commit 20f0290

Please sign in to comment.