Skip to content

Commit

Permalink
change: Removed flipAlignment prop for better alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh committed Oct 15, 2024
1 parent 27ad566 commit a0ae96d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions @navikt/core/react/src/overlays/floating-menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ const MenuRootContentNonModal = React.forwardRef<
ref={ref}
disableOutsidePointerEvents={false}
onDismiss={() => context.onOpenChange(false)}
flipAlignment={false}
/>
);
});
Expand All @@ -232,7 +231,6 @@ const MenuRootContentModal = forwardRef<
{ checkForDefaultPrevented: false },
)}
onDismiss={() => context.onOpenChange(false)}
flipAlignment={false}
/>
);
});
Expand Down
3 changes: 0 additions & 3 deletions @navikt/core/react/src/overlays/floating/Floating.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ interface FloatingContentProps extends HTMLAttributes<HTMLDivElement> {
collisionBoundary?: Boundary | Boundary[];
collisionPadding?: number | Partial<Record<Side, number>>;
hideWhenDetached?: boolean;
flipAlignment?: boolean;
updatePositionStrategy?: "optimized" | "always";
onPlaced?: () => void;
arrow?: {
Expand All @@ -213,7 +212,6 @@ const FloatingContent = forwardRef<HTMLDivElement, FloatingContentProps>(
updatePositionStrategy = "optimized",
onPlaced,
arrow: _arrow,
flipAlignment,
...contentProps
}: FloatingContentProps,
forwardedRef,
Expand Down Expand Up @@ -258,7 +256,6 @@ const FloatingContent = forwardRef<HTMLDivElement, FloatingContentProps>(
altBoundary: hasExplicitBoundaries,
/* https://floating-ui.com/docs/flip#fallbackaxissidedirection */
fallbackAxisSideDirection: "end",
flipAlignment,
};

const { refs, floatingStyles, placement, isPositioned, middlewareData } =
Expand Down

0 comments on commit a0ae96d

Please sign in to comment.