File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,9 @@ const FormLabel: FormLabel = React.forwardRef(
89
89
bsPrefix = useBootstrapPrefix ( bsPrefix , 'form-label' ) ;
90
90
91
91
let columnClass = 'col-form-label' ;
92
- if ( typeof column === 'string' ) columnClass = `${ columnClass } -${ column } ` ;
92
+ if ( typeof column === 'string' )
93
+ columnClass = `${ columnClass } ${ columnClass } -${ column } ` ;
94
+
93
95
const classes = classNames (
94
96
className ,
95
97
bsPrefix ,
Original file line number Diff line number Diff line change @@ -77,13 +77,13 @@ describe('<FormLabel>', () => {
77
77
78
78
it ( 'should properly size itself when rendered as a Col' , ( ) => {
79
79
mount ( < FormLabel column = "sm" > Label</ FormLabel > ) . assertSingle (
80
- 'label.col-form-label-sm' ,
80
+ 'label.col-form-label.col-form-label -sm' ,
81
81
) ;
82
82
mount ( < FormLabel column > Label</ FormLabel > ) . assertSingle (
83
83
'label.col-form-label' ,
84
84
) ;
85
85
mount ( < FormLabel column = "lg" > Label</ FormLabel > ) . assertSingle (
86
- 'label.col-form-label-lg' ,
86
+ 'label.col-form-label.col-form-label -lg' ,
87
87
) ;
88
88
let labelComponent = mount ( < FormLabel > Label</ FormLabel > ) ;
89
89
labelComponent . assertNone ( 'label.col-form-label' ) ;
You can’t perform that action at this time.
0 commit comments