-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MTV-1786] Add tooltip to Create plan wizard's Target namespace field
Signed-off-by: Jeff Puzzo <[email protected]>
- Loading branch information
Showing
4 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
packages/common/src/components/HelpIconPopover/HelpIconPopover.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
|
||
import { Popover, PopoverProps } from '@patternfly/react-core'; | ||
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon'; | ||
|
||
interface HelpIconPopoverProps { | ||
children: React.ReactNode; | ||
header?: string; | ||
popoverProps?: Omit<PopoverProps, 'bodyContent' | 'titleContent'>; | ||
} | ||
|
||
export const HelpIconPopover: React.FC<HelpIconPopoverProps> = ({ | ||
children, | ||
header, | ||
popoverProps, | ||
}) => ( | ||
<Popover position="right" bodyContent={children} headerContent={header} {...popoverProps}> | ||
<button type="button" className="pf-c-form__group-label-help"> | ||
<HelpIcon /> | ||
</button> | ||
</Popover> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// @index(['./*', /__/g], f => `export * from '${f.path}';`) | ||
export * from './HelpIconPopover'; | ||
// @endindex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters