You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/popover/img/popover-alert.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/popover/img/popover-behavior.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/popover/img/popover-linked-question.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/popover/img/popover-states.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/popover/img/popover-usage.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/popover/img/popover-variations-alert.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/popover/popover.md
+25-10Lines changed: 25 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,26 +7,36 @@ related: [
7
7
'Tooltip'
8
8
]
9
9
---
10
+
11
+
import '../components.css';
10
12
11
13
## Usage
12
14
Popovers are commonly used on form field labels, page titles or headings, or table column headings. Use popovers to:
13
15
- Anticipate and answer questions for the user.
14
16
- Help explain unfamiliar terms.
15
17
- Provide context around a task.
16
18
17
-
<imgsrc="./img/popover-email.png"alt="popover for an email address form field explaining what the email address is used for"width="1500"/>
19
+
<divclass="ws-docs-content-img">
20
+

21
+
</div>
18
22
19
23
When using a default popover to define a term or explain a concept, use a gray question-circle icon. Upon hover or click, the icon turns black.
20
24
21
-
<imgsrc="./img/popovers-colors.png"alt="Popover icon colors depending on state"width="481"/>
25
+
<divclass="ws-docs-content-img">
26
+

27
+
</div>
22
28
23
29
To provide more information to a user without an accompanying UI element, you can add a popover to a linked question.
24
30
25
-
<imgsrc="./img/popovers-2.png"alt="popover for a linked question"width="1500"/>
31
+
<divclass="ws-docs-content-img">
32
+

33
+
</div>
26
34
27
35
Use link button styling for the linked question, and add a blue question-circle icon before it. Clicking the link text triggers a popover, which answers the linked question.
28
36
29
-
<imgsrc="./img/alert_popover_usage.png"alt="alert popover opens when user clicks or hovers over an alert label"width="1500"/>
37
+
<divclass="ws-docs-content-img">
38
+

39
+
</div>
30
40
31
41
To provide additional information about an alert, use an alert popover. The alert popover will open upon hover or click.
32
42
@@ -40,12 +50,15 @@ Both [tooltips](/components/tooltip/design-guidelines) and popovers provide more
40
50
For information on other forms of on-screen help, see [Tooltip](/components/tooltip/design-guidelines) and [Hint](/components/hint/design-guidelines).
41
51
42
52
## Behavior
53
+
54
+
<divclass="ws-docs-content-img">
55
+

56
+
</div>
57
+
43
58
Popovers are triggered when a user clicks on the popover icon and are dismissed in one of the following ways:
44
-
- The user clicks the exit icon.
45
-
- The user clicks anywhere on the screen outside the popover.
46
-
- The user clicks an action button inside the popover. (Note: This won't always close the popover; it depends on the action button.)
47
-
48
-
<imgsrc="./img/popover-example.png"alt="popover example with placeholder text for the title and informational text"width="300"/>
59
+
1. The user clicks the exit icon.
60
+
2. The user clicks anywhere on the screen outside the popover.
61
+
3. The user clicks an action button inside the popover. (Note: This won't always close the popover; it depends on the action button.)
49
62
50
63
## Variations
51
64
@@ -55,7 +68,9 @@ These popovers are plain-text and do not include icons. They are used to convey
55
68
### Alert popovers
56
69
These popover are similar to default popovers, the key difference being the inclusion of status-like headers for the following alert types: default, info, success, warning, and danger.
57
70
58
-
<imgsrc="./img/alert_popover_examples.png"alt="alert popover examples with placeholder text for the title and informational text"width="300"/>
71
+
<divclass="ws-docs-content-img">
72
+

73
+
</div>
59
74
60
75
## Content considerations
61
76
- Popover copy is longer than tooltip copy, but it should still be concise. Aim for 1–3 sentences.
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/tooltip/img/bar-chart.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/tooltip/img/disabled-button.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/tooltip/img/kebab-icon.svg
0 commit comments