-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust resource name form spacing and help icon (#3234)
- Loading branch information
1 parent
c9a5929
commit 854cb3c
Showing
3 changed files
with
69 additions
and
86 deletions.
There are no files selected for viewing
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
14 changes: 7 additions & 7 deletions
14
frontend/src/concepts/k8s/ResourceNameDefinitionTooltip.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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import * as React from 'react'; | ||
import { Stack, StackItem, Tooltip } from '@patternfly/react-core'; | ||
import { HelpIcon } from '@patternfly/react-icons'; | ||
import { Popover, Stack, StackItem } from '@patternfly/react-core'; | ||
import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons'; | ||
import DashboardPopupIconButton from '~/concepts/dashboard/DashboardPopupIconButton'; | ||
|
||
const ResourceNameDefinitionTooltip: React.FC = () => ( | ||
<Tooltip | ||
position="right" | ||
content={ | ||
<Popover | ||
bodyContent={ | ||
<Stack hasGutter> | ||
<StackItem>Resource names are what your resources are labeled in OpenShift.</StackItem> | ||
<StackItem>Resource names are not editable after creation.</StackItem> | ||
</Stack> | ||
} | ||
> | ||
<HelpIcon aria-label="More info" /> | ||
</Tooltip> | ||
<DashboardPopupIconButton icon={<OutlinedQuestionCircleIcon />} aria-label="More info" /> | ||
</Popover> | ||
); | ||
|
||
export default ResourceNameDefinitionTooltip; |