Skip to content

Commit 4ee2ea3

Browse files
committed
fix(input-radio): fix display in all orientations
1 parent 0e5ca90 commit 4ee2ea3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/fractal/src/components/InputRadio/InputRadio.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const InputRadio = forwardRef<HTMLButtonElement, InputRadioProps>(
9393
`${PREFIX}-${GROUP_NAME}`,
9494
`${PREFIX}-${GROUP_NAME}--${variant}`,
9595
'group/radio',
96-
'flex w-full max-w-full cursor-default items-center rounded-sm',
96+
'flex w-full max-w-full cursor-default rounded-sm',
9797
variantClassNames[variant],
9898
isDisabled
9999
? `${PREFIX}-${GROUP_NAME}--disabled text-disabled`
@@ -109,7 +109,7 @@ export const InputRadio = forwardRef<HTMLButtonElement, InputRadioProps>(
109109
ref={combinedRef}
110110
className={cj(
111111
`${PREFIX}-${GROUP_NAME}__radio`,
112-
'mt-half h-full min-h-6 flex-grow-0 self-start rounded-xs border-none bg-unset px-unset py-unset focus-visible:outline-none',
112+
'self mt-half h-full min-h-6 flex-grow-0 rounded-xs border-none bg-unset px-unset py-unset focus-visible:outline-none',
113113
isDisabled
114114
? 'cursor-not-allowed'
115115
: 'cursor-pointer [&>:first-child]:data-state-checked:bg-primary group-hover/radio:[&>:first-child]:data-state-unchecked:bg-highlight',

packages/fractal/src/components/InputRadio/InputRadioGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const InputRadioGroup = ({
4646
`${PREFIX}-${GROUP_NAME}__group`,
4747
`${PREFIX}-${GROUP_NAME}__group--${variant}`,
4848
'flex max-w-full flex-col gap-3',
49-
'data-horizontal:flex-row data-horizontal:flex-wrap sm:data-horizontal:flex-nowrap',
49+
'data-horizontal:flex-row data-horizontal:flex-wrap data-horizontal:items-start data-vertical:justify-start sm:data-horizontal:flex-nowrap',
5050
disabled ? `${PREFIX}-${GROUP_NAME}__group--disabled` : '',
5151
fullWidth
5252
? `${PREFIX}-${GROUP_NAME}__group--full-width w-full`

0 commit comments

Comments
 (0)