Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
tlabaj committed Nov 1, 2023
1 parent d28ad07 commit a5a225d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ exports[`SearchInput advanced search 1`] = `
data-popper-escaped="true"
data-popper-placement="bottom-start"
data-popper-reference-hidden="true"
style="position: absolute; left: 0px; top: 0px; z-index: 9999; opacity: 1; transition: opacity 0ms cubic-bezier(.54, 1.5, .38, 1.11); min-width: 0px; transform: translate(0px, 0px);"
style="position: absolute; top: 0px; left: 0px; transform: translate(0px, 0px); min-width: 0px; z-index: 9999; opacity: 1; transition: opacity 0ms cubic-bezier(.54, 1.5, .38, 1.11);"
/>
</div>
</DocumentFragment>
Expand Down
15 changes: 0 additions & 15 deletions packages/react-core/src/helpers/Popper/Popper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,6 @@ const getOppositePlacement = (placement: Placement): any =>
export const getOpacityTransition = (animationDuration: number) =>
`opacity ${animationDuration}ms cubic-bezier(.54, 1.5, .38, 1.11)`;

export const getLanguageDirection = (targetElement: HTMLElement) => {
const defaultDirection = 'ltr';
let direction = defaultDirection;

if (targetElement) {
direction = getComputedStyle(targetElement).getPropertyValue('direction');
}

if (['ltr', 'rtl'].includes(direction)) {
return direction as 'ltr' | 'rtl';
}

return defaultDirection;
};

export interface PopperProps {
/**
* Trigger reference element to which the popper is relatively placed to.
Expand Down

0 comments on commit a5a225d

Please sign in to comment.