Skip to content

Commit

Permalink
Apply the vertical class instead of horizontal when forcing the v…
Browse files Browse the repository at this point in the history
…ertical variant (#2342)
  • Loading branch information
jamesricky authored Jul 29, 2024
1 parent 1aee56c commit ff526f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/admin/admin/src/form/FieldContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const Root = createComponentSlot(FormControl)<FieldContainerClassKey, OwnerState
slotName: "root",
classesResolver(ownerState) {
return [
ownerState.variant === "vertical" && "vertical",
ownerState.variant === "horizontal" && "horizontal",
(ownerState.variant === "vertical" || ownerState.forceVertical) && "vertical",
ownerState.variant === "horizontal" && !ownerState.forceVertical && "horizontal",
ownerState.fullWidth && "fullWidth",
ownerState.hasError && "hasError",
ownerState.hasWarning && "hasWarning",
Expand Down

0 comments on commit ff526f2

Please sign in to comment.