File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/react/src/components/FormGroup Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import PropTypes from 'prop-types';
9
9
import React from 'react' ;
10
10
import classnames from 'classnames' ;
11
11
import { settings } from 'carbon-components' ;
12
+ import { useFeatureFlag } from '../FeatureFlags' ;
12
13
13
14
const { prefix } = settings ;
14
15
@@ -23,7 +24,10 @@ const FormGroup = ({
23
24
hasMargin,
24
25
...other
25
26
} ) => {
26
- const classNamesLegend = classnames ( `${ prefix } --label` , className ) ;
27
+ const enabled = useFeatureFlag ( 'enable-v11-release' ) ;
28
+ const classNamesLegend = classnames ( `${ prefix } --label` , [
29
+ enabled ? null : className ,
30
+ ] ) ;
27
31
const classNamesFieldset = classnames ( `${ prefix } --fieldset` , className , {
28
32
[ `${ prefix } --fieldset--no-margin` ] : ! hasMargin ,
29
33
} ) ;
You can’t perform that action at this time.
0 commit comments