Skip to content

Commit

Permalink
vr
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielpereirapinheiro committed Jan 22, 2025
1 parent d081e07 commit 1ac6702
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/gestalt/src/Fieldset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function Fieldset({
<Text size="100">{legend}</Text>
</legend>
{children}
{helperText && (
{helperText && isInVRExperiment && (
<div className={classnames(styles.marginTop)} id={`${id}-helperText`}>
<Flex gap={8}>
<Flex.Item flex="grow">
Expand All @@ -91,7 +91,9 @@ export default function Fieldset({
</Flex>
</div>
)}
{errorMessage && <FormErrorMessage id={`${id}-error`} marginTop text={errorMessage} />}
{errorMessage && (
<FormErrorMessage id={`${id}-error`} marginTop={isInVRExperiment} text={errorMessage} />
)}
</fieldset>
);
}
Expand Down

0 comments on commit 1ac6702

Please sign in to comment.