Skip to content

Commit

Permalink
Capitalise Position type
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed Dec 2, 2024
1 parent 9623132 commit e9d6601
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ const {
WINDOW_RESIZE,
} = actionTypes;

type position = { top: number; bottom: number; left: number; right: number };
type Position = { top: number; bottom: number; left: number; right: number };

const getPosition = (element: HTMLElement | null): position | undefined => {
const getPosition = (element: HTMLElement | null): Position | undefined => {
if (!element) {
return undefined;
}
Expand All @@ -101,7 +101,7 @@ interface State {
open: boolean;
highlightIndex: number;
closeReason: CloseReason;
triggerPosition?: position;
triggerPosition?: Position;
}

const CLOSED_INDEX = -1;
Expand Down Expand Up @@ -391,7 +391,7 @@ interface MenuProps {
focusTrigger: () => void;
highlightIndex: number;
children: ReactNode[];
triggerPosition?: position;
triggerPosition?: Position;
position?: 'absolute' | 'relative'; // 'relative' is used for screenshot testing
}

Expand Down

0 comments on commit e9d6601

Please sign in to comment.