Skip to content

Commit 7e88111

Browse files
docs(tooltips and popovers): Updates images for v6.
1 parent ad51c8f commit 7e88111

12 files changed

Lines changed: 1129 additions & 14 deletions

File tree

packages/documentation-site/patternfly-docs/content/design-guidelines/components/popover/img/popover-alert.svg

Lines changed: 188 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/popover/img/popover-behavior.svg

Lines changed: 32 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/popover/img/popover-linked-question.svg

Lines changed: 146 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/popover/img/popover-states.svg

Lines changed: 71 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/popover/img/popover-usage.svg

Lines changed: 98 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/popover/img/popover-variations-alert.svg

Lines changed: 90 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/popover/popover.md

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,36 @@ related: [
77
'Tooltip'
88
]
99
---
10+
11+
import '../components.css';
1012

1113
## Usage
1214
Popovers are commonly used on form field labels, page titles or headings, or table column headings. Use popovers to:
1315
- Anticipate and answer questions for the user.
1416
- Help explain unfamiliar terms.
1517
- Provide context around a task.
1618

17-
<img src="./img/popover-email.png" alt="popover for an email address form field explaining what the email address is used for" width="1500"/>
19+
<div class="ws-docs-content-img">
20+
![Example showing a popover on a form field label.](./img/popover-usage.svg)
21+
</div>
1822

1923
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.
2024

21-
<img src="./img/popovers-colors.png" alt="Popover icon colors depending on state" width="481"/>
25+
<div class="ws-docs-content-img">
26+
![Examples of the different popover icon states.](./img/popover-states.svg)
27+
</div>
2228

2329
To provide more information to a user without an accompanying UI element, you can add a popover to a linked question.
2430

25-
<img src="./img/popovers-2.png" alt="popover for a linked question" width="1500"/>
31+
<div class="ws-docs-content-img">
32+
![Example showing a popover on a linked question.](./img/popover-linked-question.svg)
33+
</div>
2634

2735
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.
2836

29-
<img src="./img/alert_popover_usage.png" alt="alert popover opens when user clicks or hovers over an alert label" width="1500"/>
37+
<div class="ws-docs-content-img">
38+
![Example showing an alert popover on a label in a table.](./img/popover-alert.svg)
39+
</div>
3040

3141
To provide additional information about an alert, use an alert popover. The alert popover will open upon hover or click.
3242

@@ -40,12 +50,15 @@ Both [tooltips](/components/tooltip/design-guidelines) and popovers provide more
4050
For information on other forms of on-screen help, see [Tooltip](/components/tooltip/design-guidelines) and [Hint](/components/hint/design-guidelines).
4151

4252
## Behavior
53+
54+
<div class="ws-docs-content-img">
55+
![Example showing the different ways that a popover can be dismissed.](./img/popover-behavior.svg)
56+
</div>
57+
4358
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-
<img src="./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.)
4962

5063
## Variations
5164

@@ -55,7 +68,9 @@ These popovers are plain-text and do not include icons. They are used to convey
5568
### Alert popovers
5669
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.
5770

58-
<img src="./img/alert_popover_examples.png" alt="alert popover examples with placeholder text for the title and informational text" width="300"/>
71+
<div class="ws-docs-content-img">
72+
![Example of the different kinds of alert popovers.](./img/popover-variations-alert.svg)
73+
</div>
5974

6075
## Content considerations
6176
- Popover copy is longer than tooltip copy, but it should still be concise. Aim for 1–3 sentences.

packages/documentation-site/patternfly-docs/content/design-guidelines/components/tooltip/img/bar-chart.svg

Lines changed: 66 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/tooltip/img/disabled-button.svg

Lines changed: 116 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/tooltip/img/kebab-icon.svg

Lines changed: 116 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)