Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions packages/react-core/src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { KeyTypes } from '../../helpers/constants';
import tooltipMaxWidth from '@patternfly/react-tokens/dist/esm/c_tooltip_MaxWidth';
import { ReactElement } from 'react';
import { Popper, getOpacityTransition } from '../../helpers/Popper/Popper';
import { Props as TippyProps } from '../../helpers/Popper/DeprecatedTippyTypes';

export enum TooltipPosition {
auto = 'auto',
Expand Down Expand Up @@ -132,12 +131,6 @@ export interface TooltipProps extends Omit<React.HTMLProps<HTMLDivElement>, 'con
id?: string;
/** CSS fade transition animation duration */
animationDuration?: number;
/** @deprecated - no longer used. if you want to constrain the popper to a specific element use the appendTo prop instead */
boundary?: 'scrollParent' | 'window' | 'viewport' | HTMLElement;
/** @deprecated - no longer used */
isAppLauncher?: boolean;
/** @deprecated - no longer used */
tippyProps?: Partial<TippyProps>;
/** @beta Opt-in for updated popper that does not use findDOMNode. */
removeFindDomNode?: boolean;
}
Expand Down Expand Up @@ -167,21 +160,9 @@ export const Tooltip: React.FunctionComponent<TooltipProps> = ({
animationDuration = 300,
reference,
'aria-live': ariaLive = reference ? 'polite' : 'off',
boundary,
isAppLauncher,
tippyProps,
removeFindDomNode = false,
...rest
}: TooltipProps) => {
if (process.env.NODE_ENV !== 'production') {
boundary !== undefined &&
console.warn(
'The Tooltip boundary prop has been deprecated. If you want to constrain the popper to a specific element use the appendTo prop instead.'
);
isAppLauncher !== undefined &&
console.warn('The Tooltip isAppLauncher prop has been deprecated and is no longer used.');
tippyProps !== undefined && console.warn('The Tooltip tippyProps prop has been deprecated and is no longer used.');
}
// could make this a prop in the future (true | false | 'toggle')
const hideOnClick = true;
const triggerOnMouseenter = trigger.includes('mouseenter');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ export class TooltipDemo extends Component {
return (
<div>
<Tooltip content={this.myTooltipProps.content}>{this.myTooltipProps.children}</Tooltip>
<Tooltip content="test deprecated props" tippyProps={{ duration: 0, delay: 0 }} isAppLauncher>
<button>Trigger</button>
</Tooltip>
<div>
<button ref={this.tooltipRef} id="tooltip-ref">
Tooltip attached via react ref
Expand Down