Skip to content

Commit 2bf3e92

Browse files
docs(toggle group): Updates images for v6. (#4673)
Co-authored-by: Andrew Ronaldson <aronalds@redhat.com>
1 parent e134735 commit 2bf3e92

6 files changed

Lines changed: 590 additions & 9 deletions

File tree

packages/documentation-site/patternfly-docs/content/design-guidelines/components/toggle-group/img/multi-select.svg

Lines changed: 109 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/toggle-group/img/toggle-elements.svg

Lines changed: 86 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/toggle-group/img/toggle-form-view.svg

Lines changed: 95 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/toggle-group/img/toggle-table-view.svg

Lines changed: 151 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/toggle-group/img/toggle-typology.svg

Lines changed: 130 additions & 0 deletions
Loading

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

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ id: Toggle group
33
section: components
44
---
55

6+
import '../components.css';
7+
68
## Elements
79
Toggle items can consist of icons, text, or both. Styling of toggles is dependent on the background color.
810

9-
<img src="./img/elements-items.png" alt="Toggle group elements" width="1536"/>
11+
<div class="ws-docs-content-img">
12+
![Elements of a toggle group.](./img/toggle-elements.svg)
13+
</div>
1014

1115
## Usage
1216
Toggle groups can be used when the user must select a single choice from a mutually exclusive set of options and can be used with or without icons.
@@ -29,20 +33,23 @@ Single select toggle groups are commonly used to switch between views including:
2933
- a form view and a YAML view
3034
- a card view and a table view
3135

32-
<img src="./img/form-view.png" alt="Single select toggle group ex" width="1500"/>
33-
34-
<img src="./img/topology-actions-2.png" alt="Single select toggle group ex2" width="1500"/>
36+
<div class="ws-docs-content-img">
37+
![Example of a single select toggle group in a form.](./img/toggle-form-view.svg)
38+
</div>
3539

36-
1. **Zoom in**: By selecting this action, the view would zoom in by one increment.
37-
2. **Fit to screen**: This action will fit the topology view to screen. After selection, the item will return to its default state, with a white background.
40+
<div class="ws-docs-content-img">
41+
![Example of a single select toggle group in a table.](./img/toggle-table-view.svg)
42+
</div>
3843

3944
### Multi select toggle group
4045
Use single multi select toggle groups when you want to select multiple attributes from a group. This is most commonly used for filtering a content view when there is a lot of space available.
4146

4247
#### Examples
4348
Selecting an attribute will apply that filter to the table. In this case, only nodes that are “ready” are shown.
4449

45-
<img src="./img/multi-select.png" alt="Multi select toggle group ex" width="1500"/>
50+
<div class="ws-docs-content-img">
51+
![Example of a multi select toggle group.](./img/multi-select.svg)
52+
</div>
4653

4754
### Toggle items
4855

@@ -51,7 +58,10 @@ Use toggle items when you want to select a single action from a group. We recomm
5158
#### Examples
5259
Toggle items are most commonly used in canvas views, such as topology. Selecting a toggle item will switch the user into that “mode” or allow them to take that action.
5360

54-
<img src="./img/topology-actions.png" alt="Toggle items ex" width="1500"/>
61+
<div class="ws-docs-content-img">
62+
![Example of toggle items.](./img/toggle-typology.svg)
63+
</div>
5564

5665
1. **Zoom in**: This item changes the cursor into a zoom icon and allows the user to zoom, as long as that toggle is selected.
57-
2. **Zoom cursor**: The cursor changes into a zoom icon and the user may exit that mode by selecting the “move” hand toggle item.
66+
2. **Fit to screen**: This action will fit the topology view to screen. After selection, the item will return to its default state, with a white background.
67+
3. **Zoom cursor**: The cursor changes into a zoom icon and the user may exit that mode by selecting the “move” hand toggle item.

0 commit comments

Comments
 (0)