Skip to content

Commit

Permalink
fix(ClipboardCopy): remove popoverposition (#8226)
Browse files Browse the repository at this point in the history
* fix(ClipboardCopy): remove popoverposition

* edit doc comment

* remove popover type from clipboardcopybutton
  • Loading branch information
gitdallas authored Oct 13, 2022
1 parent 3812ffc commit a9f8ef0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as React from 'react';
import styles from '@patternfly/react-styles/css/components/ClipboardCopy/clipboard-copy';
import { css } from '@patternfly/react-styles';
import { PickOptional } from '../../helpers/typeUtils';
import { PopoverPosition } from '../Popover';
import { TooltipPosition } from '../Tooltip';
import { TextInput } from '../TextInput';
import { GenerateId } from '../../helpers/GenerateId/GenerateId';
Expand Down Expand Up @@ -53,9 +52,8 @@ export interface ClipboardCopyProps extends Omit<React.HTMLProps<HTMLDivElement>
isBlock?: boolean;
/** Adds Clipboard Copy variant styles. */
variant?: typeof ClipboardCopyVariant | 'inline' | 'expansion' | 'inline-compact';
/** Copy button popover position. */
/** Copy button tooltip position. */
position?:
| PopoverPosition
| TooltipPosition
| 'auto'
| 'top'
Expand Down Expand Up @@ -109,7 +107,7 @@ export class ClipboardCopy extends React.Component<ClipboardCopyProps, Clipboard
isExpanded: false,
isCode: false,
variant: 'inline',
position: PopoverPosition.top,
position: TooltipPosition.top,
maxWidth: '150px',
exitDelay: 1600,
entryDelay: 300,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as React from 'react';
import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
import { Button } from '../Button';
import { Tooltip, TooltipPosition } from '../Tooltip';
import { PopoverPosition } from '../Popover';

export interface ClipboardCopyButtonProps
extends Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'ref'> {
Expand All @@ -25,7 +24,6 @@ export interface ClipboardCopyButtonProps
/** Position of the copy button tooltip */
position?:
| TooltipPosition
| PopoverPosition
| 'auto'
| 'top'
| 'bottom'
Expand Down

0 comments on commit a9f8ef0

Please sign in to comment.