Skip to content

Commit 94f51eb

Browse files
committed
fix(Radio): horizontal by default for button and tabs
1 parent 2b0d7fb commit 94f51eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/fields/RadioGroup/RadioGroup.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ function RadioGroup(props: WithNullableValue<CubeRadioGroupProps>, ref) {
113113
type === 'button' || type === 'tabs' ? 'horizontal' : 'vertical';
114114
}
115115

116-
let { radioGroupProps: fieldProps, labelProps } = useRadioGroup(props, state);
116+
let { radioGroupProps: fieldProps, labelProps } = useRadioGroup(
117+
{ ...props, orientation },
118+
state,
119+
);
117120

118121
let radioGroup = (
119122
<RadioGroupElement

0 commit comments

Comments
 (0)